[Yulup-commits] rev 24139 -
public/yulup/src/trunk/yulup/src/chrome/content
andi at wyona.com
andi at wyona.com
Thu May 3 18:31:58 CEST 2007
Author: andi
Date: 2007-05-03 18:31:56 +0200 (Thu, 03 May 2007)
New Revision: 24139
Modified:
public/yulup/src/trunk/yulup/src/chrome/content/neutron.js
Log:
Check for exceptions from the network service.
Modified: public/yulup/src/trunk/yulup/src/chrome/content/neutron.js
===================================================================
--- public/yulup/src/trunk/yulup/src/chrome/content/neutron.js 2007-05-03 16:23:17 UTC (rev 24138)
+++ public/yulup/src/trunk/yulup/src/chrome/content/neutron.js 2007-05-03 16:31:56 UTC (rev 24139)
@@ -581,9 +581,13 @@
* @return {Undefined} does not have a return value
*/
__requestFinishedHandler: function (aDocumentData, aResponseStatusCode, aContext, aResponseHeaders, aException) {
-
/* DEBUG */ dump("Yulup:neutron.js:NeutronIntrospection.__requestFinishedHandler() invoked\n");
+ if (aException) {
+ aContext.callbackFunction(null, aException, aContext);
+ return;
+ }
+
if (NetworkService.isStatusSuccess(aResponseStatusCode)) {
// success, call back to original caller
aContext.callbackFunction(aDocumentData, null, aContext);
More information about the Yulup-commits
mailing list