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, + }); + } } });