From 7d676ee4644a7350b8f7791ec042fb36a664b2e2 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Fri, 6 Jan 2023 09:33:19 +0100 Subject: [PATCH] render more details from errors --- .../src/installer/error/installer-error.element.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/installer/error/installer-error.element.ts b/src/Umbraco.Web.UI.Client/src/installer/error/installer-error.element.ts index 80c3aaba34..832669ef46 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/error/installer-error.element.ts +++ b/src/Umbraco.Web.UI.Client/src/installer/error/installer-error.element.ts @@ -57,14 +57,17 @@ export class UmbInstallerErrorElement extends UmbLitElement { private _renderError(error: ProblemDetails) { return html` -

${error.detail ?? 'Unknown error'}

-
+

Description: ${error.title}

${error.errors ? this._renderErrors(error.errors) : nothing} +
+

Details:

+

${error.detail ?? 'Unknown error'}

`; } private _renderErrors(errors: Record) { return html` +

Errors:

@@ -75,8 +78,7 @@ export class UmbInstallerErrorElement extends UmbLitElement { return html`
-

Installing Umbraco

-

Something went wrong

+

Something went wrong:

${this._error ? this._renderError(this._error) : nothing}