error() — astro Function Reference
Architecture documentation for the error() function in messages.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 6ff4f501_c7b5_5632_a9d6_0aef1744c127["error()"] 7e47cce3_632a_b102_4402_d13baf44fc8e["messages.ts"] 6ff4f501_c7b5_5632_a9d6_0aef1744c127 -->|defined in| 7e47cce3_632a_b102_4402_d13baf44fc8e 325f265a_a84d_6afa_c4c9_7a8631d25cd0["log()"] 6ff4f501_c7b5_5632_a9d6_0aef1744c127 -->|calls| 325f265a_a84d_6afa_c4c9_7a8631d25cd0 style 6ff4f501_c7b5_5632_a9d6_0aef1744c127 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/create-astro/src/messages.ts lines 96–103
export const error = async (prefix: string, text: string) => {
if (stdout.columns < 80) {
log(`${' '.repeat(5)} ${color.red('▲')} ${color.red(prefix)}`);
log(`${' '.repeat(9)}${color.dim(text)}`);
} else {
log(`${' '.repeat(5)} ${color.red('▲')} ${color.red(prefix)} ${color.dim(text)}`);
}
};
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does error() do?
error() is a function in the astro codebase, defined in packages/create-astro/src/messages.ts.
Where is error() defined?
error() is defined in packages/create-astro/src/messages.ts at line 96.
What does error() call?
error() calls 1 function(s): log.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free