Skip to content

Commit

Permalink
Status commands write to stderr on non-zero return (#27)
Browse files Browse the repository at this point in the history
* Status commands write to stderr on non-zero return

* Bumped package version

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
  • Loading branch information
Nitepone and hedger authored Dec 17, 2023
1 parent 613fa4c commit 889623c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.4.3
0.2.4.4
5 changes: 4 additions & 1 deletion ufbt/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,10 @@ def _func(self, args) -> int:
for key, value in state_data.items():
log.info(f"{self.STATUS_FIELDS[key]:<15} {value}")

return 1 if state_data.get("error") else 0
if state_data.get("error"):
log.error("Status error: {}".format(state_data.get("error")))
return 1
return 0


bootstrap_subcommand_classes = (UpdateSubcommand, CleanSubcommand, StatusSubcommand)
Expand Down

0 comments on commit 889623c

Please sign in to comment.