Remove error type from error message (#958)
This commit is contained in:
parent
28330d0e30
commit
9048890bf6
@ -287,7 +287,8 @@ class AnkiController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_showAnkiError(error) {
|
_showAnkiError(error) {
|
||||||
const errorString = `${error}`;
|
let errorString = typeof error === 'object' && error !== null ? error.message : null;
|
||||||
|
if (!errorString) { errorString = `${error}`; }
|
||||||
this._ankiErrorMessageContainer.textContent = errorString;
|
this._ankiErrorMessageContainer.textContent = errorString;
|
||||||
|
|
||||||
const data = error.data;
|
const data = error.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user