From: pines Date: Mon, 9 Oct 2006 20:08:14 +0000 (+0000) Subject: auto-handle unhandled network errors :) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cef796d316a6653871521e125a7c0fe3c4cefd2a;p=evergreen%2Fpines.git auto-handle unhandled network errors :) git-svn-id: svn://svn.open-ils.org/ILS/trunk@6426 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/error.js b/Open-ILS/xul/staff_client/chrome/content/util/error.js index e9ae3140ed..d1f9a8da12 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/error.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/error.js @@ -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."; }