Home / Function/ formatError() — supabase Function Reference

formatError() — supabase Function Reference

Architecture documentation for the formatError() function in Troubleshooting.utils.shared.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  b6e53903_33ec_9995_3031_d400948426c7["formatError()"]
  c275cea5_dbf1_4eb5_82f0_13bb1b01f00b["TroubleshootingPage()"]
  c275cea5_dbf1_4eb5_82f0_13bb1b01f00b -->|calls| b6e53903_33ec_9995_3031_d400948426c7
  fbc62d8b_a116_9f41_7af7_7155ca1eaa67["TroubleshootingPreview()"]
  fbc62d8b_a116_9f41_7af7_7155ca1eaa67 -->|calls| b6e53903_33ec_9995_3031_d400948426c7
  3d399921_4c21_6851_0665_3721e77a88d8["getAllTroubleshootingErrors()"]
  3d399921_4c21_6851_0665_3721e77a88d8 -->|calls| b6e53903_33ec_9995_3031_d400948426c7
  7aea9dc5_5217_e3f1_4239_79f2598fc256["getTroubleshootingErrorsByTopic()"]
  7aea9dc5_5217_e3f1_4239_79f2598fc256 -->|calls| b6e53903_33ec_9995_3031_d400948426c7
  style b6e53903_33ec_9995_3031_d400948426c7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/docs/Troubleshooting.utils.shared.ts lines 14–16

export function formatError(error: NonNullable<ITroubleshootingEntry['data']['errors']>[number]) {
  return `${error.http_status_code ?? ''}${!!error.http_status_code && !!error.code ? ' ' : ''}${error.code ?? ''}`
}

Subdomains

Frequently Asked Questions

What does formatError() do?
formatError() is a function in the supabase codebase.
What calls formatError()?
formatError() is called by 4 function(s): TroubleshootingPage, TroubleshootingPreview, getAllTroubleshootingErrors, getTroubleshootingErrorsByTopic.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free