Skip to content

Commit 844c9a2

Browse files
committed
Fix error msg
1 parent d071248 commit 844c9a2

File tree

1 file changed

+5
-26
lines changed
  • apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/special-tags

1 file changed

+5
-26
lines changed

apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/special-tags/special-tags.tsx

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -449,33 +449,12 @@ function CredentialDisplay({ data }: { data: CredentialTagData }) {
449449
}
450450

451451
function MothershipErrorDisplay({ data }: { data: MothershipErrorTagData }) {
452+
const detail = data.code ? `${data.message} (${data.code})` : data.message
453+
452454
return (
453-
<div className='animate-stream-fade-in rounded-xl border border-red-300/40 bg-red-50/50 px-4 py-3 dark:border-red-500/20 dark:bg-red-950/20'>
454-
<div className='flex items-center gap-2'>
455-
<svg
456-
className='h-4 w-4 shrink-0 text-red-600 dark:text-red-400'
457-
viewBox='0 0 16 16'
458-
fill='none'
459-
xmlns='http://www.w3.org/2000/svg'
460-
>
461-
<circle cx='8' cy='8' r='6.5' stroke='currentColor' strokeWidth='1.3' />
462-
<path d='M8 4.5v4' stroke='currentColor' strokeWidth='1.3' strokeLinecap='round' />
463-
<circle cx='8' cy='11' r='0.75' fill='currentColor' />
464-
</svg>
465-
<span className='font-[500] text-[14px] text-red-800 leading-5 dark:text-red-300'>
466-
Something went wrong
467-
</span>
468-
</div>
469-
<p className='mt-1.5 text-[13px] text-red-700/90 leading-[20px] dark:text-red-400/80'>
470-
{data.message}
471-
</p>
472-
{data.code && (
473-
<span className='mt-1 inline-block text-[11px] text-red-500/70 dark:text-red-500/50'>
474-
{data.provider ? `${data.provider}:` : ''}
475-
{data.code}
476-
</span>
477-
)}
478-
</div>
455+
<span className='animate-stream-fade-in font-base text-[13px] text-[var(--text-secondary)] italic leading-[20px]'>
456+
{detail}
457+
</span>
479458
)
480459
}
481460

0 commit comments

Comments
 (0)