Skip to content

Commit bec00d6

Browse files
committed
Improve session error handling and display
1 parent 55baa63 commit bec00d6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

apps/twig/src/renderer/features/sessions/components/SessionView.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,15 +379,14 @@ export function SessionView({
379379
className="absolute inset-0 bg-gray-1"
380380
>
381381
<Warning size={32} weight="duotone" color="var(--red-9)" />
382-
<Text size="3" weight="medium" color="red">
383-
Session Error
384-
</Text>
385382
<Text
386-
size="2"
383+
size="3"
384+
weight="medium"
387385
align="center"
388-
className="max-w-md px-4 text-gray-11"
386+
color="red"
387+
className="max-w-md px-4"
389388
>
390-
{errorMessage}
389+
{errorMessage || DEFAULT_ERROR_MESSAGE}
391390
</Text>
392391
<Flex gap="2" mt="2">
393392
{onRetry && (

0 commit comments

Comments
 (0)