eventConfigError() — astro Function Reference
Architecture documentation for the eventConfigError() function in error.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 2316fa00_6f8f_0438_23da_1883409858e6["eventConfigError()"] 2bf4188d_3294_32f2_7216_e6a2a60569ef["error.ts"] 2316fa00_6f8f_0438_23da_1883409858e6 -->|defined in| 2bf4188d_3294_32f2_7216_e6a2a60569ef style 2316fa00_6f8f_0438_23da_1883409858e6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/events/error.ts lines 38–55
export function eventConfigError({
err,
cmd,
isFatal,
}: {
err: $ZodError;
cmd: string;
isFatal: boolean;
}): { eventName: string; payload: ConfigErrorEventPayload }[] {
const payload: ConfigErrorEventPayload = {
name: 'ZodError',
isFatal,
isConfig: true,
cliCommand: cmd,
configErrorPaths: err.issues.map((issue) => issue.path.join('.')),
};
return [{ eventName: EVENT_ERROR, payload }];
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does eventConfigError() do?
eventConfigError() is a function in the astro codebase, defined in packages/astro/src/events/error.ts.
Where is eventConfigError() defined?
eventConfigError() is defined in packages/astro/src/events/error.ts at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free