Fix error message display in alerts.js
This commit is contained in:
parent
1bef8fb268
commit
eeb4de89cc
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ export default class alerts {
|
||||||
// Display the error message.
|
// Display the error message.
|
||||||
console.error(texts.localized(`error_msg`, false, [ERROR_CODE, ERROR_MESSAGE, ERROR_STACK]));
|
console.error(texts.localized(`error_msg`, false, [ERROR_CODE, ERROR_MESSAGE, ERROR_STACK]));
|
||||||
if (critical) {
|
if (critical) {
|
||||||
alert(texts.localized(`error_msg_GUI`, false, [String(ERROR_CODE)]));
|
alert(texts.localized(`error_msg_GUI`, false, [String(ERROR_CODE), ERROR_MESSAGE]));
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
M.toast({ text: message });
|
M.toast({ text: message });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue