dumping exceptions to console when isXUL is true
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Feb 2006 18:48:18 +0000 (18:48 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Feb 2006 18:48:18 +0000 (18:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2977 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/RemoteRequest.js

index e02b6b7..11c40de 100644 (file)
@@ -206,7 +206,13 @@ RemoteRequest.prototype.getResultObject = function() {
                        alert("A Server Error Occured.  Debug information follows:\n" +
                                "Status: " + obj.status + '\n' + obj.debug + '\n' 
                                + 'Payload: ' + js2JSON(obj.payload) + '\n');
-               } else { throw obj; }
+               } else { 
+                       dump('Remote Request Error:' +
+                                       '\ncode = '             + obj.status + 
+                                       '\ndebug: '             + obj.debug + 
+                                       '\npayload: '   + js2JSON(obj.payload)); 
+                       throw obj;
+               }
        }
 
        var payload = obj.payload;