From 4d263d2fc01fc598f71a548bf18c94855f9fe438 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 7 Aug 2006 14:46:17 +0000 Subject: [PATCH] throwing exception on network error git-svn-id: svn://svn.open-ils.org/ILS/trunk@5329 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/RemoteRequest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {} -- 2.11.0