auto-handle unhandled network errors :)
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Oct 2006 20:08:14 +0000 (20:08 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 9 Oct 2006 20:08:14 +0000 (20:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6426 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/error.js

index e9ae314..d1f9a8d 100644 (file)
@@ -275,6 +275,9 @@ util.error.prototype = {
                        if (E.ilsevent == 0 /* SUCCESS */ ) {
                                msg = "The action involved likely succeeded, however, this part of the software needs to be updated to better understand success messages from the server, so please let us know about it.";
                        }
+                       if (E.ilsevent == -1 /* Network/Server Problem */ ) {
+                               return obj.standard_network_error_alert(msg);
+                       }
                        if (E.ilsevent == 5000 /* PERM_FAILURE */ ) {
                                msg = "The action involved likely failed due to insufficient permissions.  However, this part of the software needs to be updated to better understand permission messages from the server, so please let us know about it.";
                        }