Skip to content

Commit af194c9

Browse files
committed
Replaced \n with <br/> in error messages
1 parent 76d8368 commit af194c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/components/common/StandardErrorAlert.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@
4949
<p>There has been an error, reason:</p>
5050
<pre>{errorString}</pre>
5151
{:else}
52-
{errorString}
52+
{#each errorString.split('\n') as line, index}
53+
{#if index > 0}
54+
<br />
55+
{/if}
56+
{line}
57+
{/each}
5358
{/if}
5459
<button class="btn-close" data-bs-dismiss="alert" on:click={hide} />
5560
</div>

0 commit comments

Comments
 (0)