From: erickson Date: Thu, 3 Aug 2006 13:46:40 +0000 (+0000) Subject: added die() function for debugging X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=67d8bcf422f704bf473c4bf27ba4ba3672d1a2ac;p=Evergreen.git added die() function for debugging git-svn-id: svn://svn.open-ils.org/ILS/trunk@5242 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/javascript/backend/circ/circ_lib.js b/Open-ILS/src/javascript/backend/circ/circ_lib.js index 29bb910599..a0fbe119cd 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_lib.js +++ b/Open-ILS/src/javascript/backend/circ/circ_lib.js @@ -55,7 +55,6 @@ if( title && title.marc ) - /* copy the group tree into some other useful data structures */ var groupTree = environment.groupTree; var groupList = {}; @@ -178,7 +177,14 @@ function isOrgDescendent( parentName, childId ) { if( val == '1' ) return true; return false; } - + +/* useful for testing */ +function die(msg) { + log_error("die(): "+msg); + log_stderr("die(): "+msg); + var foo = null; + var baz = foo.bar; +}