diff --git a/packages/astro/src/core/errors/overlay.ts b/packages/astro/src/core/errors/overlay.ts index 66dbb37668..c4caa3e8de 100644 --- a/packages/astro/src/core/errors/overlay.ts +++ b/packages/astro/src/core/errors/overlay.ts @@ -711,8 +711,8 @@ class ErrorOverlay extends HTMLElement { }) .join(' '); - el.innerHTML = text.trim(); - } else { + el.innerHTML = text.trim(); + } else { el.textContent = text.trim(); } }