From: erickson Date: Mon, 7 Aug 2006 14:46:17 +0000 (+0000) Subject: throwing exception on network error X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4d263d2fc01fc598f71a548bf18c94855f9fe438;p=evergreen%2Fpines.git throwing exception on network error git-svn-id: svn://svn.open-ils.org/ILS/trunk@5329 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/common/js/RemoteRequest.js b/Open-ILS/web/opac/common/js/RemoteRequest.js index 94b1cf0acd..63a2183507 100644 --- a/Open-ILS/web/opac/common/js/RemoteRequest.js +++ b/Open-ILS/web/opac/common/js/RemoteRequest.js @@ -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) {}