From 282fb76cb6cb5a8a6b805a5fb74b0c1a12ef88b9 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 4 Oct 2013 09:40:35 +0000 Subject: [PATCH] Improve error message --- phpgwapi/js/jsapi/egw_json.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/js/jsapi/egw_json.js b/phpgwapi/js/jsapi/egw_json.js index 8fe8481dd0..f5bc9cb120 100644 --- a/phpgwapi/js/jsapi/egw_json.js +++ b/phpgwapi/js/jsapi/egw_json.js @@ -331,6 +331,10 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) { } return true; } + else + { + throw '"' + res.data.func + '" is not a callable function (type is ' + typeof parent[func] + ')'; + } } throw 'Invalid parameters'; }, null, 'apply');