aboutsummaryrefslogtreecommitdiffhomepage
path: root/options
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-06-27 21:26:05 +0200
committerGravatar wm4 <wm4@nowhere>2015-06-27 21:26:05 +0200
commit85b7cbec7046464722d73dbf7fef6bb3d036f1d8 (patch)
treeb140094afd51988d6ccdaf49e92fe4f1ff22bb0b /options
parent1921f40db58dfbbd55170d9bfde6e14559d74a7d (diff)
options: improve an error message
"mpv --ao=wasapi:help" on Linux gave "Option ao doesn't exist.". Completely misleading and stupid.
Diffstat (limited to 'options')
-rw-r--r--options/m_option.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options/m_option.c b/options/m_option.c
index 347a2726db..7d95d93fb9 100644
--- a/options/m_option.c
+++ b/options/m_option.c
@@ -2747,8 +2747,8 @@ print_help: ;
desc->print_help(log);
m_config_print_option_list(config);
} else {
- mp_warn(log, "Option %.*s doesn't exist.\n",
- BSTR_P(opt_name));
+ mp_warn(log, "Option %.*s: item %.*s doesn't exist.\n",
+ BSTR_P(opt_name), BSTR_P(name));
}
r = M_OPT_EXIT - 1;