MCPcopy Index your code
hub / github.com/simstudioai/sim / renderErrorHtml

Function renderErrorHtml

apps/sim/lib/mothership/inbox/response.ts:298–317  ·  view source on GitHub ↗
(error: string, chatUrl: string)

Source from the content-addressed store, hash-verified

296}
297
298async function renderErrorHtml(error: string, chatUrl: string): Promise<string> {
299 const html = await render(
300 createElement(
301 InboxResponseEmail,
302 { chatUrl, linkLabel: 'View details' },
303 createElement(
304 Text,
305 { key: 'message', style: markdownStyles.p },
306 "I wasn't able to complete this task."
307 ),
308 createElement(
309 Text,
310 { key: 'error', style: { ...markdownStyles.p, color: '#6b7280' } },
311 `Error: ${error}`
312 )
313 )
314 )
315
316 return stripUnsafeUrls(html)
317}

Callers 1

sendInboxResponseFunction · 0.85

Calls 2

stripUnsafeUrlsFunction · 0.85
renderFunction · 0.50

Tested by

no test coverage detected