parser-cfg: specify which config file contains the unknown option
Also add some punctuation to the warning message.
This commit is contained in:
1 parent
41d6ddf5fb
commit
fa0ea3bd0d
1 file changed
+2
-2
+2
-2
@@ -230,8 +230,8 @@ int m_config_parse_config_file(m_config_t *config, const char *conffile)
|
||||
PRINT_LINENUM;
|
||||
if (tmp == M_OPT_UNKNOWN) {
|
||||
mp_msg(MSGT_CFGPARSER, MSGL_WARN,
|
||||
"Warning unknown option %s at line %d\n",
|
||||
opt, line_num);
|
||||
"Warning: unknown option '%s' at line %d in file '%s'.\n",
|
||||
opt, line_num, conffile);
|
||||
continue;
|
||||
}
|
||||
mp_msg(MSGT_CFGPARSER, MSGL_ERR,
|
||||
|
||||
Reference in new issue
Block a user