Skip to content

Commit 0697f3c

Browse files
committed
Improved error message
1 parent 86a6fa8 commit 0697f3c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

apps/webapp/app/components/AskAI.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { ShortcutKey } from "./primitives/ShortcutKey";
2020
import { Spinner } from "./primitives/Spinner";
2121
import { SimpleTooltip } from "./primitives/Tooltip";
2222
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./primitives/Tooltip";
23+
import { Callout } from "./primitives/Callout";
2324

2425
type KapaChatProps = {
2526
websiteId: string;
@@ -225,13 +226,12 @@ function ChatMessages({
225226
)}
226227
{error && (
227228
<div className="flex flex-col">
228-
<Paragraph spacing className="text-error">
229-
Error generating answer
230-
</Paragraph>
231-
<Paragraph className="text-text-dimmed">{error}</Paragraph>
232-
<Paragraph spacing>
233-
Please try again. If the problem persists, please contact support.
234-
</Paragraph>
229+
<Callout variant="error" className="mb-4">
230+
<Paragraph className="font-semibold text-error">Error generating answer:</Paragraph>
231+
<Paragraph className="text-rose-300">
232+
{error} Please try again. If the problem persists, please contact support.
233+
</Paragraph>
234+
</Callout>
235235
<Button
236236
variant="secondary/small"
237237
LeadingIcon={<ArrowPathIcon className="size-4" />}

0 commit comments

Comments
 (0)