frappe / frappejs

Node + Electron + Vue based metadata web framework (inspired by Frappe)
263 stars 110 forks source link

Add error modal #82

Closed anto-christo closed 5 years ago

anto-christo commented 6 years ago

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');

error-modal

error-console

netchampfaris commented 6 years ago

Also, initialize frappe.events when we call frappe.init()