Skip to content

Commit

Permalink
fix: display error message from calling usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Mar 16, 2024
1 parent ec8dbdf commit be585f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ impl Completion {
)
.run();
if res.is_err() {
debug!("usage command failed, falling back to prerendered completions");
debug!("error: {:?}", res);
return self.prerendered(shell);
}
return Ok(());
Expand Down

0 comments on commit be585f3

Please sign in to comment.