throwing exception on network error
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Aug 2006 14:46:17 +0000 (14:46 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 7 Aug 2006 14:46:17 +0000 (14:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5329 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 94b1cf0..63a2183 100644 (file)
@@ -256,8 +256,8 @@ RemoteRequest.prototype.getResultObject = function() {
 
        try {
                if( this.xmlhttp.status != 200 ) {
-                       try{dump('! Returning NULL.  HTTP STATUS = ' + this.xmlhttp.status);}catch(e){}
-                       return null;
+                       try{dump('! NETWORK FAILURE.  HTTP STATUS = ' + this.xmlhttp.status);}catch(e){}
+                       throw 'NETWORK FAILURE';
                }
        } catch(e) {}