util.exec changed
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Dec 2005 17:02:36 +0000 (17:02 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Dec 2005 17:02:36 +0000 (17:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2263 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/display.js

index dc13eed..e89ac69 100644 (file)
@@ -515,6 +515,7 @@ patron.display.prototype = {
                                                obj.error.sdump('D_ERROR',error);
                                                alert(error);
                                                //FIXME// abort the chain
+                                               throw(error);
                                        }
                                }
                        );
@@ -581,8 +582,11 @@ patron.display.prototype = {
                        chain.push( function() { obj.controller.render(); } );
 
                        // Do it
-                       JSAN.use('util.exec');
-                       util.exec.chain( chain );
+                       JSAN.use('util.exec'); this.exec = new util.exec();
+                       this.exec.on_error = function(E) {
+                               alert('got here: ' + E);
+                       }
+                       this.exec.chain( chain );
 
                } catch(E) {
                        var error = ('patron.display.retrieve : ' + js2JSON(E));