From 5e5a9ab5dbea15a7c6ba7cc1bdf529043734f08b Mon Sep 17 00:00:00 2001 From: nitepone Date: Tue, 12 Dec 2023 13:31:48 -0800 Subject: [PATCH 1/2] Status commands write to stderr on non-zero return --- ufbt/bootstrap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ufbt/bootstrap.py b/ufbt/bootstrap.py index 4cefb18..043c39e 100644 --- a/ufbt/bootstrap.py +++ b/ufbt/bootstrap.py @@ -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) From 54aee5e387e26d52e40463c6b5ea2a773747d779 Mon Sep 17 00:00:00 2001 From: hedger Date: Wed, 13 Dec 2023 12:05:14 +0400 Subject: [PATCH 2/2] Bumped package version --- VERSION.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION.txt b/VERSION.txt index f33f5ed..49dc353 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -0.2.4.3 \ No newline at end of file +0.2.4.4