Skip to content

Commit

Permalink
Whitespace formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Oct 5, 2023
1 parent 048d09e commit 0ccadb2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,12 @@
const errors = getErrors(error);
</script>

<pre
class="max-h-[500px] overflow-y-scroll overflow-x-scroll break-normal resize-y whitespace-pre tab-size-2">
<code>
<StackTraceHeader {errors}></StackTraceHeader>
{#each errors.reverse() as error, index}
{#if error.stack_trace}
<div class="pl-[10px]">{cleanStackTrace(
<pre><code
><StackTraceHeader {errors}
></StackTraceHeader>{#each errors.reverse() as error, index}{#if error.stack_trace}<div
class="pl-[10px]">{cleanStackTrace(
error.stack_trace
)}</div>
{#if index < errors.length - 1}
<div>--- End of inner error stack trace ---</div>
{/if}
{/if}
)}</div>{#if index < errors.length - 1}<div>--- End of inner error stack trace ---</div>{/if}{/if}
{/each}
</code>
</pre>
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,11 @@
const errors = getErrors(error);
</script>

<pre
class="max-h-[500px] overflow-y-scroll overflow-x-scroll break-normal resize-y whitespace-pre tab-size-2"><code
><StackTraceHeader {errors}></StackTraceHeader>
{#each errors.reverse() as error, index}
{#if error.stack_trace}
<div class="pl-[10px]">
{#each error.stack_trace as frame}
{getStackFrame(frame)}
{/each}
{#if index < errors.length - 1}
<div>--- End of inner exception stack trace ---</div>
{/if}
</div>
{/if}
{/each}
<pre><code
><StackTraceHeader {errors}
></StackTraceHeader>{#each errors.reverse() as error, index}{#if error.stack_trace}<div
class="pl-[10px]">{#each error.stack_trace as frame}{getStackFrame(
frame
)}{/each}{#if index < errors.length - 1}<div>--- End of inner exception stack trace ---</div>{/if}</div>{/if}{/each}
</code>
</pre>
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,9 @@
export let errors: (SimpleErrorInfo | ErrorInfo)[] = [];
</script>

{#each errors as error, index}
<span class="block">
{#if index > 0}
--->
{/if}
{#if error.type}
<span class="font-bold">{error.type}: </span>
{/if}
{#if error.message}
{error.message}
{/if}
</span>
{#each errors as error, index}<div>
{#if index > 0}<span class="ml-6">---> </span>{/if}{#if error.type}<span class="font-bold"
>{error.type}:</span
>{/if}{#if error.message}{error.message}{/if}
</div>
{/each}
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
</div>

<h4 class="text-lg">Stack Trace</h4>
<div class="h-[120px]">
<div class="max-h-[120px]">
{#if event.data?.['@error']}
<StackTrace error={event.data['@error']} />
{:else}
Expand Down

0 comments on commit 0ccadb2

Please sign in to comment.