Change undefined route to use quoted string formatting
Signed-off-by: Ben Ridley <benridley29@gmail.com>
This commit is contained in:
parent
3ece40664b
commit
44e9aa9762
|
@ -463,7 +463,7 @@ func checkTimeInterval(r *Route, timeIntervals map[string]struct{}) error {
|
|||
}
|
||||
for _, mt := range r.MuteTimes {
|
||||
if _, ok := timeIntervals[mt]; !ok {
|
||||
return fmt.Errorf("undefined time interval %s used in route", mt)
|
||||
return fmt.Errorf("undefined time interval %q used in route", mt)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue