Skip to content

Commit

Permalink
add clarifying error msg
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Lai <[email protected]>
  • Loading branch information
soraxas committed Jan 2, 2024
1 parent 66aad47 commit 4c3aa31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (h *Host) Options() OptionsList {
options = append(options, Option{Name: fieldName, Value: entry})
}
} else {
panic(fmt.Sprintf("Undefined Range type for field '%s'", fieldName))
panic(fmt.Sprintf("Undefined Range type for field '%s'.\nIt must contains either of the following value: [ joinByComma, perLine ]", fieldName))
}
break

Check notice on line 282 in pkg/config/host.go

View check run for this annotation

codefactor.io / CodeFactor

pkg/config/host.go#L282

Omit unnecessary break at the end of case clause (unnecessary-stmt)

Check notice on line 282 in pkg/config/host.go

View check run for this annotation

codefactor.io / CodeFactor

pkg/config/host.go#L282

Useless break in case clause (WARN: this break statement affects this switch or select statement and not the loop enclosing it) (useless-break)
default:
Expand Down

0 comments on commit 4c3aa31

Please sign in to comment.