From 061265bbd07ffc6f6195e5bf83613b5e2b03e598 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Thu, 22 Sep 2022 21:10:14 +0200 Subject: [PATCH] catch the error returned by add_repo_status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If add_repo_status returns an error it will eventually be printed to the user but there won't be any repository information: [✘] Error getting status: No branch checked out Catch the error earlier so we can print the repository name: [✘] Error: freebsd-src: Couldn't add repo status: No branch checked out --- src/table.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/table.rs b/src/table.rs index 5256a6a..cf07a86 100644 --- a/src/table.rs +++ b/src/table.rs @@ -185,7 +185,11 @@ pub fn get_status_table(config: config::Config) -> Result<(Vec, Vec