From 76ac1787b8de8698b878d1837c5fa8f6fe6403fc Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 17 Jul 2018 19:28:37 +0200 Subject: add bug status + open/close commands --- commands/comment.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'commands/comment.go') diff --git a/commands/comment.go b/commands/comment.go index f635139b..9815dac4 100644 --- a/commands/comment.go +++ b/commands/comment.go @@ -22,11 +22,12 @@ func runComment(repo repository.Repo, args []string) error { var err error - if len(args) == 0 { - return errors.New("No bug id provided") - } if len(args) > 1 { - return errors.New("Only accepting one bug id is supported") + return errors.New("Only one bug id is supported") + } + + if len(args) == 0 { + return errors.New("You must provide a bug id") } prefix := args[0] -- cgit