fixed reference variable when displaying error messages

This commit is contained in:
buzzcode2007 2024-04-05 09:50:34 +08:00
parent a5256d9a21
commit 72742a1103

View file

@ -63,9 +63,9 @@ export default class alerts {
alert(texts.localized(`error_msg_GUI`, false, [String(ERROR_CODE), ERROR_MESSAGE])); alert(texts.localized(`error_msg_GUI`, false, [String(ERROR_CODE), ERROR_MESSAGE]));
} else { } else {
try { try {
M.toast({ text: message }); M.toast({ text: ERROR_MESSAGE });
} catch (err) {} } catch (err) {};
} };
})(); })();
} }
} }