cli/lib/ui/errors.rs
1//! Error message helpers for nestrs CLI.
2
3pub fn missing_rust_config(path: &str) -> String {
4 format!(
5 "Could not find Rust configuration file \"{path}\". Please, ensure that you are running this command inside a nestrs workspace."
6 )
7}
8
9pub fn wrong_plugin(name: &str) -> String {
10 format!("The \"{name}\" plugin is not a Rust-native nestrs compiler plugin.")
11}
12
13pub const CLI_ERRORS: &[(&str, &str)] = &[
14 ("MISSING_RUST_CONFIG", "missing_rust_config"),
15 ("WRONG_PLUGIN", "wrong_plugin"),
16];