handle exception on store load if paging toolbar is used
authorAlan Knowles <alan@roojs.com>
Wed, 18 Aug 2021 10:41:47 +0000 (18:41 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Aug 2021 10:41:47 +0000 (18:41 +0800)
Roo/data/HttpProxy.js

index 9d6f402..c08bc53 100644 (file)
@@ -129,14 +129,10 @@ Roo.extend(Roo.data.HttpProxy, Roo.data.DataProxy, {
         try {
             result = o.reader.read(response);
         }catch(e){
+            o.success = false;
+            o.raw = { errorMsg : response.responseText };
             this.fireEvent("loadexception", this, o, response, e);
-            o.request.callback.call(o.request.scope, {
-                    success : false,
-                    raw : {
-                        errorMsg : response.responseText
-                    }
-                    
-                }, o.request.arg, false);
+            o.request.callback.call(o.request.scope, o, o.request.arg, false);
             return;
         }