show more details on some errors
Massimo Melina committed
Jul 10, 2023 at 10:36 UTC
f5f3243ae48f22acf9d6f33615c596cefc5be17c
1 file changed
+3
-2
frontend/src/dialog.ts
+3
-2
@@ -76,9 +76,10 @@ export async function alertDialog(msg: ReactElement | string | Error, type:Alert
76
77
function Content(){
78
if (msg instanceof Error)
79
- msg = err2msg(msg)
79
+ msg = h('div', {}, err2msg(msg),
80
+ h('div', { style: { marginTop: 20, fontSize: 'small' } }, msg.message) )
81
if (typeof msg === 'string')
81
- msg = h('p', {}, String(msg))
82
+ msg = h('p', {}, msg)
83
return msg
84
}
85
}