error() — astro Function Reference
Architecture documentation for the error() function in messages.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD a884235e_5d81_7b28_7e80_3e832aab50bd["error()"] d28938aa_d420_d4d1_6b36_01f3df03707d["messages.ts"] a884235e_5d81_7b28_7e80_3e832aab50bd -->|defined in| d28938aa_d420_d4d1_6b36_01f3df03707d ac3298d6_0c78_5a80_8fb7_ec8acfacd90c["log()"] a884235e_5d81_7b28_7e80_3e832aab50bd -->|calls| ac3298d6_0c78_5a80_8fb7_ec8acfacd90c style a884235e_5d81_7b28_7e80_3e832aab50bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/upgrade/src/messages.ts lines 146–153
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/upgrade/src/messages.ts.
Where is error() defined?
error() is defined in packages/upgrade/src/messages.ts at line 146.
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