diff --git a/frappe/public/js/frappe/request.js b/frappe/public/js/frappe/request.js index 16b113f079..35f946df65 100644 --- a/frappe/public/js/frappe/request.js +++ b/frappe/public/js/frappe/request.js @@ -301,8 +301,8 @@ frappe.request.call = function(opts) { console.log(e); } if (data && data.exception) { - // frappe.exceptions.CustomError -> CustomError - var exception = data.exception.split('.').at(-1); + // frappe.exceptions.CustomError: (1024, ...) -> CustomError + var exception = data.exception.split('.').at(-1).split(':').at(0); var exception_handler = exception_handlers[exception]; if (exception_handler) { exception_handler(data);