improve error message display through spaces
This commit is contained in:
parent
7b49f8fcbf
commit
d2bbd8923f
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ export default class logging {
|
||||||
*/
|
*/
|
||||||
static async error(ERROR_CODE, ERROR_MESSAGE, ERROR_STACK, critical = true) {
|
static async error(ERROR_CODE, ERROR_MESSAGE, ERROR_STACK, critical = true) {
|
||||||
// Display the error message.
|
// Display the error message.
|
||||||
console.error('%c%s%c%s%c%s%c\n%s%c', `font-weight: bold;`, ERROR_CODE, ``, `:`, ``, ERROR_MESSAGE, `font-family: monospace;`, ERROR_STACK, ``);
|
console.error('%c%s%c%s%c%s%c\n%s%c', `font-weight: bold;`, ERROR_CODE, ``, `: `, ``, ERROR_MESSAGE, `font-family: monospace;`, ERROR_STACK, ``);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
(critical) ? alert(texts.localized(`error_msg_GUI`, false, [String(ERROR_CODE), ERROR_MESSAGE])) : M.toast({ text: ERROR_MESSAGE });
|
(critical) ? alert(texts.localized(`error_msg_GUI`, false, [String(ERROR_CODE), ERROR_MESSAGE])) : M.toast({ text: ERROR_MESSAGE });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue