From 680e4ed86fbff4124a4c530b66b55166d3b78c82 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 20 Feb 2025 12:54:24 +0000 Subject: [PATCH] fix(ui-templates): remove extra `
` when rendering dev
 errors

---
 .../ui-templates/templates/error-dev/index.html |  4 ++--
 .../test/__snapshots__/templates.spec.ts.snap   | 17 +----------------
 2 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/packages/ui-templates/templates/error-dev/index.html b/packages/ui-templates/templates/error-dev/index.html
index aa96b9d67c..932972574f 100644
--- a/packages/ui-templates/templates/error-dev/index.html
+++ b/packages/ui-templates/templates/error-dev/index.html
@@ -1,7 +1,7 @@
 
 
   
-    {{ messages.statusCode }} - {{ messages.statusMessage }} | {{ messages.appName }}
+    {{ messages.statusCode }} - {{ messages.statusMessage || 'Internal Server Error' }}
     
     
     
@@ -11,7 +11,7 @@
     

{{ messages.description }}

Customize this page
-
{{{ messages.stack }}}
+
{{{ messages.stack }}}
diff --git a/packages/ui-templates/test/__snapshots__/templates.spec.ts.snap b/packages/ui-templates/test/__snapshots__/templates.spec.ts.snap index e9e3966086..2475d24d16 100644 --- a/packages/ui-templates/test/__snapshots__/templates.spec.ts.snap +++ b/packages/ui-templates/test/__snapshots__/templates.spec.ts.snap @@ -648,23 +648,8 @@ a { color: inherit; text-decoration: inherit; } -pre { - font-family: - ui-monospace, - SFMono-Regular, - Menlo, - Monaco, - Consolas, - Liberation Mono, - Courier New, - monospace; - font-feature-settings: normal; - font-size: 1em; - font-variation-settings: normal; -} h1, -p, -pre { +p { margin: 0; } *,