Skip to content

Commit c040f64

Browse files
committed
Improve config error message
Improve config parsing error message for cases where the generator is built from a commit that supports newer features than the deployed exporter. Signed-off-by: SuperQ <[email protected]>
1 parent df1b28d commit c040f64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ func main() {
217217
err := sc.ReloadConfig(*configFile, *expandEnvVars)
218218
if err != nil {
219219
logger.Error("Error parsing config file", "err", err)
220-
logger.Error("Possible old config file, see https://github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md")
220+
logger.Error("Possible version missmatch between generator and snmp_exporter. Make sure generator and snmp_exporter are the same version."
221+
logger.Error("See also: https://github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md")
221222
os.Exit(1)
222223
}
223224

0 commit comments

Comments
 (0)