Closed anto-christo closed 5 years ago
Added error handling function that displays the error message and stack trace on a modal. Also throws the error in console.
frappe.throw('Error message', 'Type of error');
frappe.throw('The server does not exist or is not live', 'NotFound');
Also, initialize frappe.events when we call frappe.init()
frappe.events
frappe.init()
Added error handling function that displays the error message and stack trace on a modal. Also throws the error in console.
Usage
frappe.throw('Error message', 'Type of error');
Example
frappe.throw('The server does not exist or is not live', 'NotFound');