From 0ab7db0c384e9a4f7958161e900b4e139a8424fc Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 1 Nov 2024 18:34:57 +0800 Subject: [PATCH] improve error msg #2232 --- src/renderer/src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/util.ts b/src/renderer/src/util.ts index 8c59f7e5..075b2466 100644 --- a/src/renderer/src/util.ts +++ b/src/renderer/src/util.ts @@ -357,7 +357,7 @@ export async function withErrorHandling(operation: () => Promise, errorMsg if (typeof errorMsgOrFn === 'function') errorMsg = errorMsgOrFn(err); if (errorMsg != null) { console.error(errorMsg, err); - errorToast(errorMsg); + handleError(errorMsg, err); } else { handleError(err); }