Skip to content

Commit

Permalink
next: fixed extended data and stack trace formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Nov 30, 2024
1 parent 65af46b commit d643752
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
<pre class="whitespace-pre-wrap break-words border p-2"><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}{/each}</Code
)}</div>{#if index < errors.length - 1}<div
class="text-muted-foreground">--- End of inner error stack trace ---</div>{/if}{/if}{/each}</Code
></pre>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

<pre class="whitespace-pre-wrap break-words border p-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)}<br
/>{/each}{#if index < errors.length - 1}<div>--- End of inner exception stack trace ---</div>{/if}</div>{/if}{/each}</Code
class="pl-[10px]">{#each error.stack_trace as frame}{getStackFrame(frame)}<br />{/each}{#if index < errors.length - 1}<div
class="text-muted-foreground">--- 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 @@ -8,7 +8,7 @@
let { children, class: className, ...props }: Props = $props();
</script>

<code class={cn('relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold', className)} {...props}>
<code class={cn('relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm', className)} {...props}>
{#if children}
{@render children()}
{/if}
Expand Down

0 comments on commit d643752

Please sign in to comment.