From: Bill Erickson Date: Thu, 24 Jan 2019 22:43:06 +0000 (-0500) Subject: LP1823393 Pcrud bubbles up transaction close errors X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=31383f2493e95294c0b72c64442a7a3c32e07e42;p=working%2FEvergreen.git 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 --- 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) + ); } ); });