From 713598a0083197b9608042e3f58c4a5996d6a4c1 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 24 Jan 2019 17:43:06 -0500 Subject: [PATCH] LP1823393 Pcrud bubbles up transaction close errors Ensure these errors make their way out to the caller instead of only logging an error. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton Signed-off-by: Jane Sandberg --- Open-ILS/src/eg2/src/app/core/pcrud.service.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/core/pcrud.service.ts b/Open-ILS/src/eg2/src/app/core/pcrud.service.ts index 9e14191c0f..7fb0c7ccf6 100644 --- a/Open-ILS/src/eg2/src/app/core/pcrud.service.ts +++ b/Open-ILS/src/eg2/src/app/core/pcrud.service.ts @@ -233,12 +233,16 @@ export class PcrudContext { res => observer.next(res), err => observer.error(err), () => { - this.xactClose().toPromise().then(() => { - // 5. disconnect - this.disconnect(); - // 6. all done - observer.complete(); - }); + this.xactClose().toPromise().then( + ok => { + // 5. disconnect + this.disconnect(); + // 6. all done + observer.complete(); + }, + // xact close error + err => observer.error(err) + ); } ); }); -- 2.43.2