aboutsummaryrefslogtreecommitdiffstats
path: root/commands/select.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-26 16:49:42 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-26 16:49:42 +0200
commit86792d789298269fcdacc2bba193bd5b922b48b7 (patch)
treeb7b5e13153e4f956ee531061fc98b344eaf194d8 /commands/select.go
parent04ddeef90f8dfb541e1b87ace1cb817679a488df (diff)
downloadgit-bug-86792d789298269fcdacc2bba193bd5b922b48b7.tar.gz
commands: don't forget to treat the error when selecting a bug
Diffstat (limited to 'commands/select.go')
-rw-r--r--commands/select.go5
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)