mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-24 19:32:29 +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 (errorMsg != null) {
|
||||
console.error(errorMsg, err);
|
||||
errorToast(errorMsg);
|
||||
handleError(errorMsg, err);
|
||||
} else {
|
||||
handleError(err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user