returning network failure on empty response text from apache
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Sep 2006 21:30:53 +0000 (21:30 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 1 Sep 2006 21:30:53 +0000 (21:30 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5848 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 164f69f..44aa0b6 100644 (file)
@@ -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;