Skip to content

Commit

Permalink
fix exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyTurtleDev committed Dec 6, 2024
1 parent a227b53 commit 72d00cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,10 @@ fn main() {

match cli.command {
Some(command) => match command {
Commands::ValidateConfig => info!("Config is valid"),
Commands::ValidateConfig => {
info!("Config is valid");
std::process::exit(1);
},
Commands::ValidateLists => {
if !async_validate_lists(config) {
error!("Config validation failed!");
Expand Down

0 comments on commit 72d00cd

Please sign in to comment.