summaryrefslogtreecommitdiffstats
path: root/options/parse_configfile.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-17 16:06:43 +0200
committerwm4 <wm4@nowhere>2015-04-17 16:06:43 +0200
commit55ba4db742911689a7feb45b7b102dfd12e8eda8 (patch)
tree4f00016b5149a063982a9dce560ebee5cdd3ce21 /options/parse_configfile.c
parent18f30787f25ae8e85901ce9b83c6fba78348cd2a (diff)
downloadmpv-55ba4db742911689a7feb45b7b102dfd12e8eda8.tar.bz2
mpv-55ba4db742911689a7feb45b7b102dfd12e8eda8.tar.xz
options: clarify quoting for option values starting with %
Diffstat (limited to 'options/parse_configfile.c')
-rw-r--r--options/parse_configfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/options/parse_configfile.c b/options/parse_configfile.c
index 2b2e8a864f..8ccf6579ba 100644
--- a/options/parse_configfile.c
+++ b/options/parse_configfile.c
@@ -106,7 +106,10 @@ int m_config_parse(m_config_t *config, const char *location, bstr data,
if (rest.len == line.len || !bstr_eatstart0(&rest, "%") ||
len > rest.len)
{
- MP_ERR(config, "%s broken escaping with '%%'\n", loc);
+ MP_ERR(config, "%s fixed-length quoting expected - put "
+ "\"quotes\" around the option value if you did not "
+ "intend to use this, but your option value starts "
+ "with '%%'\n", loc);
goto error;
}
value = bstr_splice(rest, 0, len);