From 90f4fff3b9f77a21ef3f8a5a7ca79f0b56df9ef5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 18 Aug 2021 18:41:47 +0800 Subject: [PATCH] handle exception on store load if paging toolbar is used --- Roo/data/HttpProxy.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Roo/data/HttpProxy.js b/Roo/data/HttpProxy.js index 9d6f402e54..c08bc532a8 100644 --- a/Roo/data/HttpProxy.js +++ b/Roo/data/HttpProxy.js @@ -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; } -- 2.39.2