mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-25 03:33:14 +01:00
improve error msg #2232
This commit is contained in:
parent
abc097e57d
commit
0ab7db0c38
@ -357,7 +357,7 @@ export async function withErrorHandling(operation: () => Promise<void>, errorMsg
|
|||||||
if (typeof errorMsgOrFn === 'function') errorMsg = errorMsgOrFn(err);
|
if (typeof errorMsgOrFn === 'function') errorMsg = errorMsgOrFn(err);
|
||||||
if (errorMsg != null) {
|
if (errorMsg != null) {
|
||||||
console.error(errorMsg, err);
|
console.error(errorMsg, err);
|
||||||
errorToast(errorMsg);
|
handleError(errorMsg, err);
|
||||||
} else {
|
} else {
|
||||||
handleError(err);
|
handleError(err);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user