From 6240f78c83d8f8ebece075ee9765eccbcd898a3e Mon Sep 17 00:00:00 2001 From: KevinWh0 <45321184+KevinWh0@users.noreply.github.com> Date: Fri, 16 Feb 2024 19:01:54 +0100 Subject: [PATCH] Seemed to have fixed it --- packages/frontend/src/os.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/os.ts b/packages/frontend/src/os.ts index 1d42c7e4d5..2c4ed0e729 100644 --- a/packages/frontend/src/os.ts +++ b/packages/frontend/src/os.ts @@ -108,10 +108,17 @@ export function promiseDialog>( if (onFailure) { onFailure(err); } else { - alert({ - type: 'error', - text: err, - }); + if (err.message) { + alert({ + type: 'error', + text: err.message, + }); + } else { + alert({ + type: 'error', + text: err, + }); + } } });