formatTOMLError() — astro Function Reference
Architecture documentation for the formatTOMLError() function in utils.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 63e7a32d_8185_527e_4395_12a2a7aad784["formatTOMLError()"] a37e7fee_e130_2a00_6f99_81cf3cf65c83["utils.ts"] 63e7a32d_8185_527e_4395_12a2a7aad784 -->|defined in| a37e7fee_e130_2a00_6f99_81cf3cf65c83 style 63e7a32d_8185_527e_4395_12a2a7aad784 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/errors/utils.ts lines 95–103
export function formatTOMLError(e: TomlError): ViteErrorPayload['err'] {
return {
name: e.name,
id: e.name,
loc: { line: e.line + 1, column: e.column },
message: e.message,
stack: e.stack ?? '',
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does formatTOMLError() do?
formatTOMLError() is a function in the astro codebase, defined in packages/astro/src/core/errors/utils.ts.
Where is formatTOMLError() defined?
formatTOMLError() is defined in packages/astro/src/core/errors/utils.ts at line 95.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free