Skip to content

Commit

Permalink
Return an exit status of 1 when loading and parsing tokens fails
Browse files Browse the repository at this point in the history
What?
=====

This updates the exit status to return 1 when finding and parsing a tags
file rather than return the program was successful.
  • Loading branch information
joshuaclayton committed Jan 6, 2022
1 parent 27050de commit 1bd92f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ pub fn run() {
}
}
}
Err(e) => error_message::failed_token_parse(e),
Err(e) => {
error_message::failed_token_parse(e);
process::exit(1)
}
},
}
}

0 comments on commit 1bd92f6

Please sign in to comment.