Skip to content

Commit

Permalink
fix(exit): This fixes a regression which was introduced, we should se…
Browse files Browse the repository at this point in the history
…arch for contains otherwise the installer does not exit when warnings are detected. Closes #32

Signed-off-by: dark0dave <dark0dave@mykolab.com>
  • Loading branch information
dark0dave committed Nov 25, 2023
1 parent 78066b0 commit fff55c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/weidu_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn detect_weidu_finished_state(weidu_output: &str) -> Option<State> {
Some(State::CompletedWithErrors {
error_details: comparable_output,
})
} else if WEIDU_COMPLETED_WITH_WARNINGS.eq(&comparable_output) {
} else if comparable_output.contains(WEIDU_COMPLETED_WITH_WARNINGS) {
Some(State::CompletedWithWarnings)
} else {
None
Expand Down

0 comments on commit fff55c0

Please sign in to comment.