From 9aab69ec412817e4d457d00274feb868061c320d Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 20 Feb 2025 12:55:20 +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 469ac24184..70e5ef84a9 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' }}
     
     
     
@@ -20,7 +20,7 @@
     

{{ messages.statusCode }}

{{ messages.description }}

-
{{{ 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 1bd4acda7c..b6ade64f97 100644 --- a/packages/ui-templates/test/__snapshots__/templates.spec.ts.snap +++ b/packages/ui-templates/test/__snapshots__/templates.spec.ts.snap @@ -708,23 +708,8 @@ h1 { font-size: inherit; font-weight: 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; } *,