This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
/* Xeslint-disable */
|
||||
import store from "../store";
|
||||
import locale from "./locale";
|
||||
|
||||
var devModeShowErrors = false;
|
||||
|
||||
//TODO: tie this into form error display somehow so that form can control whether to show particular error or not
|
||||
//i.e. dealwitherror(msg,formerrordisplayfunction,bool shouldshowError)
|
||||
function dealWithError(msg) {
|
||||
msg = locale.translateString(msg);
|
||||
store.commit("logItem", msg);
|
||||
if (devModeShowErrors) {
|
||||
alert("Error: " + msg);
|
||||
|
||||
Reference in New Issue
Block a user