Change undefined route to use quoted string formatting

Signed-off-by: Ben Ridley <benridley29@gmail.com>
This commit is contained in:
Ben Ridley 2020-10-14 21:20:28 +11:00
parent 3ece40664b
commit 44e9aa9762
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ func checkTimeInterval(r *Route, timeIntervals map[string]struct{}) error {
} }
for _, mt := range r.MuteTimes { for _, mt := range r.MuteTimes {
if _, ok := timeIntervals[mt]; !ok { 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 return nil