From 86792d789298269fcdacc2bba193bd5b922b48b7 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 26 Sep 2018 16:49:42 +0200 Subject: commands: don't forget to treat the error when selecting a bug --- commands/select.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'commands') 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) -- cgit