1
0
mirror of https://github.com/beestat/app.git synced 2026-02-13 15:04:38 -05:00
beestat/js/beestat/error.js
2020-03-06 07:49:41 -05:00

13 lines
376 B
JavaScript

/**
* Pop up a modal error message.
*
* @param {string} message The human-readable message.
* @param {string} detail Technical error details.
*/
beestat.error = function(message, detail) {
var exception_modal = new beestat.component.modal.error();
exception_modal.set_message(message);
exception_modal.set_detail(detail);
exception_modal.render();
};