Skip to content

Commit e060127

Browse files
Merge pull request #4366 from SungJin1212/Fix-typo-in-route-validation
chore: fix typo in route config validation error message
2 parents 7980594 + 5cac322 commit e060127

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ func (r *Route) UnmarshalYAML(unmarshal func(interface{}) error) error {
924924
}
925925

926926
if len(r.GroupBy) > 0 && r.GroupByAll {
927-
return errors.New("cannot have wildcard group_by (`...`) and other other labels at the same time")
927+
return errors.New("cannot have wildcard group_by (`...`) and other labels at the same time")
928928
}
929929

930930
groupBy := map[model.LabelName]struct{}{}

config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ receivers:
300300
`
301301
_, err := Load(in)
302302

303-
expected := "cannot have wildcard group_by (`...`) and other other labels at the same time"
303+
expected := "cannot have wildcard group_by (`...`) and other labels at the same time"
304304

305305
if err == nil {
306306
t.Fatalf("no error returned, expected:\n%q", expected)

0 commit comments

Comments
 (0)