Author: ddumont
Date: Fri Apr 13 19:19:48 2012
New Revision: 1325910

URL: http://svn.apache.org/viewvc?rev=1325910&view=rev
Log:
SHINDIG-1489: When HTTP status is not 200, error object is not contained in 
callback of osapi

Modified:
    shindig/trunk/features/src/main/javascript/features/osapi.base/osapi.js

Modified: 
shindig/trunk/features/src/main/javascript/features/osapi.base/osapi.js
URL: 
http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/osapi.base/osapi.js?rev=1325910&r1=1325909&r2=1325910&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/osapi.base/osapi.js 
(original)
+++ shindig/trunk/features/src/main/javascript/features/osapi.base/osapi.js Fri 
Apr 13 19:19:48 2012
@@ -89,7 +89,8 @@ osapi._BoundCall.prototype.execute = fun
   batch.add(this.method, this);
   batch.execute(function(batchResult) {
     if (batchResult.error) {
-      feralCallback.call(that, batchResult.error);
+      // Forward the error back.
+      feralCallback.call(that, { error: batchResult.error });
     } else {
       feralCallback.call(that, batchResult[that.method]);
     }


Reply via email to