Skip to content

Commit

Permalink
Print and exit if we don't have any runs
Browse files Browse the repository at this point in the history
  • Loading branch information
daenney committed May 9, 2021
1 parent 31ec1c7 commit 59e40cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/gdqcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ func main() {
log.Fatalln(err)
}

if len(schedule.Runs) == 0 {
log.Printf("No runs for event with ID %d: (%s)\n", ev.ID, ev.String())
os.Exit(0)
}

if *runner != "" {
schedule = schedule.ForRunner(*runner)
}
Expand Down

0 comments on commit 59e40cf

Please sign in to comment.