From 55ba4db742911689a7feb45b7b102dfd12e8eda8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 Apr 2015 16:06:43 +0200 Subject: options: clarify quoting for option values starting with % --- options/parse_configfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'options') 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); -- cgit v1.2.3