improve error msg #2232

pull/2185/head
Mikael Finstad 2 years ago
parent abc097e57d
commit 0ab7db0c38
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -357,7 +357,7 @@ export async function withErrorHandling(operation: () => Promise<void>, errorMsg
if (typeof errorMsgOrFn === 'function') errorMsg = errorMsgOrFn(err);
if (errorMsg != null) {
console.error(errorMsg, err);
errorToast(errorMsg);
handleError(errorMsg, err);
} else {
handleError(err);
}

Loading…
Cancel
Save