mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 20:55:07 -05:00
conf: improve some error messages
This commit is contained in:
6
conf.c
6
conf.c
@@ -793,7 +793,7 @@ CNF_ParseLine(const char *filename, int number, char *line)
|
|||||||
!strcasecmp(command, "linux_hz")) {
|
!strcasecmp(command, "linux_hz")) {
|
||||||
LOG(LOGS_WARN, "%s directive is no longer supported", command);
|
LOG(LOGS_WARN, "%s directive is no longer supported", command);
|
||||||
} else {
|
} else {
|
||||||
other_parse_error("Invalid directive");
|
other_parse_error("Invalid directive %s", command);
|
||||||
}
|
}
|
||||||
|
|
||||||
processed_file = processed_command = NULL;
|
processed_file = processed_command = NULL;
|
||||||
@@ -1064,13 +1064,13 @@ parse_refclock(char *line)
|
|||||||
n = 0;
|
n = 0;
|
||||||
sel_options |= sel_option;
|
sel_options |= sel_option;
|
||||||
} else {
|
} else {
|
||||||
other_parse_error("Invalid refclock option");
|
other_parse_error("Invalid %s %s directive", "option in", processed_command);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*cmd) {
|
if (*cmd) {
|
||||||
command_parse_error();
|
other_parse_error("Invalid %s %s directive", "value in", processed_command);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user