From cef796d316a6653871521e125a7c0fe3c4cefd2a Mon Sep 17 00:00:00 2001 From: pines Date: Mon, 9 Oct 2006 20:08:14 +0000 Subject: [PATCH] auto-handle unhandled network errors :) 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 | 3 +++ 1 file changed, 3 insertions(+) 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."; } -- 2.11.0