use request onerror handler on callback exceptions also
authorLuc Yriarte <luc.yriarte@intel.com>
Mon, 15 Apr 2013 16:03:48 +0000 (18:03 +0200)
committerFrederic PAUT <frederic.paut@linux.intel.com>
Fri, 24 May 2013 08:02:06 +0000 (10:02 +0200)
cloudeebus/cloudeebus.js

index 18e7317..083dd79 100644 (file)
@@ -548,8 +548,8 @@ cloudeebus.ProxyObject.prototype.callMethod = function(ifName, method, args, suc
                        }
                        catch (e) {
                                cloudeebus.log("Method callback exception: " + e);
-                               if (errorCB)
-                                       errorCB(e);
+                               if (request.onerror)
+                                       request.onerror(e);
                        }
                }
        }