diff --git a/edit/base.js b/edit/base.js index 2ee946b9..b983f525 100644 --- a/edit/base.js +++ b/edit/base.js @@ -419,7 +419,7 @@ function LivePreview() { el.hidden = true; } catch (err) { if (Array.isArray(err)) { - err = err.join('\n'); + err = err.map(e => e.message || e).join('\n'); } else if (err && err.index != null) { // FIXME: this would fail if editors[0].getValue() !== data.sourceCode const pos = editor.getEditors()[0].posFromIndex(err.index);