Home / Function/ formatYAMLException() — astro Function Reference

formatYAMLException() — astro Function Reference

Architecture documentation for the formatYAMLException() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  c90eab53_f109_66de_224d_a9d7cc9049cb["formatYAMLException()"]
  a37e7fee_e130_2a00_6f99_81cf3cf65c83["utils.ts"]
  c90eab53_f109_66de_224d_a9d7cc9049cb -->|defined in| a37e7fee_e130_2a00_6f99_81cf3cf65c83
  style c90eab53_f109_66de_224d_a9d7cc9049cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/errors/utils.ts lines 80–88

export function formatYAMLException(e: YAMLException): ViteErrorPayload['err'] {
	return {
		name: e.name,
		id: e.mark.name,
		loc: { file: e.mark.name, line: e.mark.line + 1, column: e.mark.column },
		message: e.reason,
		stack: e.stack ?? '',
	};
}

Domain

Subdomains

Frequently Asked Questions

What does formatYAMLException() do?
formatYAMLException() is a function in the astro codebase, defined in packages/astro/src/core/errors/utils.ts.
Where is formatYAMLException() defined?
formatYAMLException() is defined in packages/astro/src/core/errors/utils.ts at line 80.

Analyze Your Own Codebase

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

Try Supermodel Free