Skip to content

Commit 233f6f5

Browse files
committed
Website: don't crash horribly on error doc problem
If a problem is detected with some error documentation, we used to show the problem on the error page in a nice red box. This broke after some refactoring, and now the whole page crashes with a ReferenceError. Fix the bug by using the correct variable.
1 parent 3f27884 commit 233f6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/public/errors/error.ejs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
by following <code>wasm/README.md</code> and
9696
<code>website/README.md</code>.
9797
</p>
98-
<p style="white-space: pre-line"><%= e %></p>
98+
<p style="white-space: pre-line"><%= problems.join("\n") %></p>
9999
</div>
100100
<% } %> <%- errorDocument.toHTML() %>
101101

0 commit comments

Comments
 (0)