From a5ac0b69562da2d9558fcc4d19860a5e816ef16e Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Thu, 7 Apr 2022 15:12:48 +0200 Subject: [PATCH] Fixed dumb mistake in repos cli --- src/git/cli.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git/cli.v b/src/git/cli.v index a75f8a0..463f1ba 100644 --- a/src/git/cli.v +++ b/src/git/cli.v @@ -108,11 +108,11 @@ fn get_repo_id_by_prefix(conf Config, id_prefix string) ?string { } if res.len == 0 { - eprintln('No repo found for given prefix.') + return error('No repo found for given prefix.') } if res.len > 1 { - eprintln('Multiple repos found for given prefix.') + return error('Multiple repos found for given prefix.') } return res[0]