From eda197b82e4a76f7a1b1096225b0a221fb5c72ca Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 1 Sep 2006 21:30:53 +0000 Subject: [PATCH] returning network failure on empty response text from apache git-svn-id: svn://svn.open-ils.org/ILS/trunk@5848 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/RemoteRequest.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/common/js/RemoteRequest.js b/Open-ILS/web/opac/common/js/RemoteRequest.js index 164f69f25d..44aa0b69fd 100644 --- a/Open-ILS/web/opac/common/js/RemoteRequest.js +++ b/Open-ILS/web/opac/common/js/RemoteRequest.js @@ -322,7 +322,12 @@ RemoteRequest.prototype.getResultObject = function() { var text = this.xmlhttp.responseText; - if(text == "" || text == " " || text == null) return null; + if(text == "" || text == " " || text == null) { + try { dump('dbg: Request returned no text!\n'); } catch(E) {} + if(isXUL()) + throw new NetworkFailure(status, this.param_string); + return null; + } var obj = JSON2js(text); if(!obj) return null; -- 2.43.2