diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-17 19:28:37 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-17 19:28:37 +0200 |
commit | 76ac1787b8de8698b878d1837c5fa8f6fe6403fc (patch) | |
tree | 2261d605eb533bc5f037887a983da0039281c9f5 /commands/comment.go | |
parent | 7b19b10e19e5dbbae79a47d3e4338b15b3e8d972 (diff) | |
download | git-bug-76ac1787b8de8698b878d1837c5fa8f6fe6403fc.tar.gz |
add bug status + open/close commands
Diffstat (limited to 'commands/comment.go')
-rw-r--r-- | commands/comment.go | 9 |
1 files changed, 5 insertions, 4 deletions
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] |