web staff : onmethoderror handler for egNet
authorBill Erickson <berick@esilibrary.com>
Tue, 4 Mar 2014 19:28:58 +0000 (14:28 -0500)
committerBill Erickson <berick@esilibrary.com>
Tue, 4 Mar 2014 19:28:58 +0000 (14:28 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/staff/services/net.js

index 61e30cf..1112db8 100644 (file)
@@ -75,7 +75,12 @@ function($q,  $rootScope,  egEvent) {
                 console.error(method + 
                     ' (' + params + ')  failed.  See server logs.');
                 deferred.reject(msg);
+            },
+            onmethoderror : function(req, statCode, statMsg) { 
+                console.error('error calling method ' + 
+                method + ' : ' + statCode + ' : ' + statMsg);
             }
+
         }).send();
 
         return deferred.promise;