Skip to content

Commit 92e3d32

Browse files
authored
fix: show compilation errors
1 parent 4ea672e commit 92e3d32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
method: "POST",
6060
});
6161

62-
output.innerText = 'Done.'
62+
const res = await req.json();
63+
output.innerText = res.error || 'Done.';
6364
updatePreview();
6465
};
6566

0 commit comments

Comments
 (0)