1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-21 18:02:35 +01:00

improve error msg #2232

This commit is contained in:
Mikael Finstad 2024-11-01 18:34:57 +08:00
parent abc097e57d
commit 0ab7db0c38
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -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);
}