accept null as an error payload for unexpected error dialog
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Jan 2009 21:00:12 +0000 (21:00 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Jan 2009 21:00:12 +0000 (21:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11852 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index aa83188..33bec73 100644 (file)
@@ -268,7 +268,7 @@ util.error.prototype = {
 
        'standard_unexpected_error_alert' : function(msg,E) {
                var obj = this;
-               if (typeof E.ilsevent != 'undefined') {
+               if (E != null && typeof E.ilsevent != 'undefined') {
                        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.";
                        }