MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / formatRetryBannerMessage

Function formatRetryBannerMessage

cli/src/utils/error-messages.ts:52–62  ·  view source on GitHub ↗
(error: unknown, pendingCount: number)

Source from the content-addressed store, hash-verified

50 * "⚠️ Network error: Server error. Please try again later. • 3 messages will retry when connection is restored"
51 */
52export function formatRetryBannerMessage(error: unknown, pendingCount: number): string {
53 const baseTitle = 'Network error'
54 const formatted = formatErrorForDisplay(error, baseTitle)
55
56 const suffix =
57 pendingCount > 0
58 ? ` • ${pendingCount} message${pendingCount === 1 ? '' : 's'} will retry when connection is restored`
59 : ''
60
61 return `⚠️ ${formatted}${suffix}`
62}

Callers

nothing calls this directly

Calls 1

formatErrorForDisplayFunction · 0.85

Tested by

no test coverage detected