LP1904036 Improve billing failure reporting
authorBill Erickson <berickxx@gmail.com>
Wed, 2 Mar 2022 15:45:19 +0000 (10:45 -0500)
committerJane Sandberg <js7389@princeton.edu>
Wed, 19 Oct 2022 01:39:08 +0000 (18:39 -0700)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
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;