1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 20:27:23 +00:00

parser-cfg: specify which config file contains the unknown option

Also add some punctuation to the warning message.
This commit is contained in:
cantabile 2012-08-20 14:01:55 +03:00 committed by wm4
parent 41d6ddf5fb
commit fa0ea3bd0d

View File

@ -230,8 +230,8 @@ int m_config_parse_config_file(m_config_t *config, const char *conffile)
PRINT_LINENUM; PRINT_LINENUM;
if (tmp == M_OPT_UNKNOWN) { if (tmp == M_OPT_UNKNOWN) {
mp_msg(MSGT_CFGPARSER, MSGL_WARN, mp_msg(MSGT_CFGPARSER, MSGL_WARN,
"Warning unknown option %s at line %d\n", "Warning: unknown option '%s' at line %d in file '%s'.\n",
opt, line_num); opt, line_num, conffile);
continue; continue;
} }
mp_msg(MSGT_CFGPARSER, MSGL_ERR, mp_msg(MSGT_CFGPARSER, MSGL_ERR,