From: pines Date: Mon, 5 Mar 2007 15:22:31 +0000 (+0000) Subject: defensive coding, re: helpdesk ticket #4873 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c90c2f3e653eabeca10fe8291db1c7fc4da0a2db;p=Evergreen.git defensive coding, re: helpdesk ticket #4873 git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@7018 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/items.js b/Open-ILS/xul/staff_client/server/patron/items.js index be6b769a1b..e96431cd22 100644 --- a/Open-ILS/xul/staff_client/server/patron/items.js +++ b/Open-ILS/xul/staff_client/server/patron/items.js @@ -557,6 +557,8 @@ patron.items.prototype = { function(req) { try { var robj = req.getResultObject(); + if (typeof robj.ilsevent != 'undefined') throw(robj); + if (typeof robj.ilsevent == 'null') throw('null result'); row.my.circ = robj.circ; row.my.acp = robj.copy; row.my.mvr = robj.mvr; @@ -579,7 +581,7 @@ patron.items.prototype = { params.on_retrieve(row); } } catch(E) { - obj.error.standard_unexpected_error_alert('circ details',E); + obj.error.standard_unexpected_error_alert('Error in callback for FM_CIRC_DETAILS in patron/items.js',E); } } );