LP1904036 Improve billing failure reporting
authorBill Erickson <berickxx@gmail.com>
Wed, 2 Mar 2022 15:45:19 +0000 (10:45 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:41 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts

index 7df7b61..dd660ba 100644 (file)
@@ -343,7 +343,10 @@ export class BillsComponent implements OnInit, AfterViewInit {
             this.focusPayAmount();
         })
 
-        .catch(msg => console.debug('Payment Canceled:', msg))
+        .catch(msg => {
+            this.reportError(msg);
+            console.debug('Payment Canceled or Failed:', msg)
+        })
         .finally(() => {
             this.applyingPayment = false;
             this.refunding = false;