Skip to content

Commit

Permalink
fix(ui): sync errors displayed twice when no --no-fail
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Perkowski <[email protected]>
  • Loading branch information
adamperkowski committed Nov 27, 2024
1 parent 8431412 commit 8d7e341
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,10 @@ async fn sync(core: Core, no_fail: bool) -> error::Result<()> {
}
}
Err(e) => {
pretty_error(&e);
if !no_fail {
return Err(e);
} else {
pretty_error(&e);
}
}
};
Expand Down

0 comments on commit 8d7e341

Please sign in to comment.