Skip to content

Commit

Permalink
Handle errors in intersection cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
buddhike committed Oct 24, 2017
1 parent b1b65ae commit c4ba5fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,12 @@ var describeIntersectionCmd = &cobra.Command{
err = errors.New("not a valid kind - available options are 'branch' and 'commit'")
}

if err == nil {
output(apps)
if err != nil {
return handle(err)
}

return err
output(apps)
return nil
},
}

Expand Down

0 comments on commit c4ba5fe

Please sign in to comment.