From 8d06f58789900ab502ee91e2cb1a695fb9797ac4 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Mon, 23 Dec 2024 18:44:42 -0800 Subject: [PATCH] center error --- lib/servez.js | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/lib/servez.js b/lib/servez.js index 3cb8e66..ccde6ff 100644 --- a/lib/servez.js +++ b/lib/servez.js @@ -96,14 +96,37 @@ const noopLogger = { }), }; -function makeErrorHTML(msg) { - return ` - -
${msg}
`; + +function makeErrorHTML(msg) { + return `\ + + + + +
${escapeStringForHTML(msg)}
+ + +`; } class Servez extends EventEmitter {