changeset 47 | 82d8b6074309 |
parent 44 | 6da40ca4534c |
child 81 | b1671f83e91b |
--- a/cmd/timelines.go Sun Apr 30 23:22:09 2017 +0200 +++ b/cmd/timelines.go Sun Apr 30 23:35:49 2017 +0200 @@ -6,6 +6,8 @@ package cmd import ( + "os" + "github.com/spf13/cobra" "github.com/McKael/madon" @@ -73,7 +75,7 @@ sl, err := gClient.GetTimelines(tl, opt.local, limOpts) if err != nil { errPrint("Error: %s", err.Error()) - return nil + os.Exit(1) } if opt.limit > 0 && len(sl) > int(opt.limit) {