This commit is contained in:
2019-04-08 17:41:51 +00:00
parent 83f5df92ab
commit 6e3669ad7c
3 changed files with 20 additions and 2 deletions

View File

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