Commit 70653a72 authored by Sebastian Stark's avatar Sebastian Stark

eliminate log.Fatal in ReadCache()

parent 4c5e0818
......@@ -90,7 +90,7 @@ func (c *Config) ReadCache() error {
}
c.Origin = t.Origin
if _, ok := schedules[t.Schedule]; ok == false {
log.Fatalln("no such schedule:", t.Schedule)
return fmt.Errorf("no such schedule: %s", t.Schedule)
}
c.Schedule = t.Schedule
c.MaxKeep = t.MaxKeep
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment