Skip to content

Commit 664311d

Browse files
committed
Use CodeBlock instead to show the full error
1 parent 832789b commit 664311d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.errors.$fingerprint

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.errors.$fingerprint/route.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ import { useSearchParams } from "~/hooks/useSearchParam";
8888
import { CopyableText } from "~/components/primitives/CopyableText";
8989
import { cn } from "~/utils/cn";
9090
import { LogsVersionFilter } from "~/components/logs/LogsVersionFilter";
91+
import { CodeBlock } from "~/components/code/CodeBlock";
9192
import { getSeriesColor } from "~/components/code/chartColors";
9293
import {
9394
Popover,
@@ -597,9 +598,14 @@ function ErrorDetailSidebar({
597598
<Property.Item>
598599
<Property.Label>Error</Property.Label>
599600
<Property.Value>
600-
<Paragraph variant="small" className="break-words font-mono">
601-
{errorGroup.errorMessage}
602-
</Paragraph>
601+
<CodeBlock
602+
code={errorGroup.errorMessage}
603+
showCopyButton
604+
showLineNumbers={false}
605+
showOpenInModal={false}
606+
language="typescript"
607+
wrap
608+
/>
603609
</Property.Value>
604610
</Property.Item>
605611
<Property.Item>

0 commit comments

Comments
 (0)