diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-26 16:49:42 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-26 16:49:42 +0200 |
commit | 86792d789298269fcdacc2bba193bd5b922b48b7 (patch) | |
tree | b7b5e13153e4f956ee531061fc98b344eaf194d8 | |
parent | 04ddeef90f8dfb541e1b87ace1cb817679a488df (diff) | |
download | git-bug-86792d789298269fcdacc2bba193bd5b922b48b7.tar.gz |
commands: don't forget to treat the error when selecting a bug
-rw-r--r-- | commands/select.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/select.go b/commands/select.go index 2cbb0b2e..b917d31d 100644 --- a/commands/select.go +++ b/commands/select.go @@ -27,7 +27,10 @@ func runSelect(cmd *cobra.Command, args []string) error { return err } - _select.Select(backend, b.Id()) + err = _select.Select(backend, b.Id()) + if err != nil { + return err + } fmt.Printf("selected bug %s: %s\n", b.HumanId(), b.Snapshot().Title) |