From 30a68209fbec7fc6a0b7aed1e9a5d277d9424e11 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 23 Dec 2022 11:49:29 -0800 Subject: [PATCH] Make any code execution errors visible to the users By sending them to the clients and having them render it in red monospace with pre-wrapped whitespace. This should allow the players to debug things when they don't work. --- bus.html | 15 ++++++++++++++- index.js | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/bus.html b/bus.html index 5760786..40e50d3 100644 --- a/bus.html +++ b/bus.html @@ -94,6 +94,11 @@ #output { width: 100%; } + #error { + font-family: monospace; + color: red; + white-space: pre-wrap; + } @@ -123,8 +128,10 @@ +
+
- +