cli_error

Macro cli_error 

Source
macro_rules! cli_error {
    ($text:expr) => { ... };
    ($text:expr, $( $arg:expr ),*) => { ... };
}
Expand description

Outputs an error message.

Displays text and optionally logs to the configured logger when the log feature is enabled.

ยงExample

use falcon_cli::cli_error;

cli_error!("Failed to connect to database");
cli_error!("Invalid input: {}", input_value);