diff --git a/src/dialogs/alert.js b/src/dialogs/alert.js index 603a261..41fa5dc 100644 --- a/src/dialogs/alert.js +++ b/src/dialogs/alert.js @@ -84,9 +84,7 @@ export default class AlertDialog extends Dialog { if (this.args.type === 'error') { const {error} = this.args; - const msg = error instanceof Error - ? (error.stack ? error.stack : error) - : String(error); + const msg = error instanceof Error ? `${error.message}\n\n${error.stack || 'No stack'}` : error; children.push(h(TextareaField, {value: msg, readonly: true, placeholder: this.args.message})); }