From b56b003fc13a4e12f97c6cfd5dd650e928d6e016 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 12 Jul 2020 00:00:26 +0200 Subject: Teach minecctl to split things into data and cfg dir, also read config variables from the server.properties file --- minecproxy/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'minecproxy') diff --git a/minecproxy/main.c b/minecproxy/main.c index c51b01c..d8f33d0 100644 --- a/minecproxy/main.c +++ b/minecproxy/main.c @@ -311,13 +311,15 @@ static void cfg_read() int key; const char *keyname; struct cfg_value value; + const char *error; if (!config_parse_line(path, &pos, mcfg_key_map, &key, &keyname, - &value, false, &lineno)) + &value, false, &lineno, &error)) break; if (key == MCFG_KEY_INVALID) - die("main config file (%s) invalid", path); + die("main config file (%s) invalid: line %u: %s", path, + lineno, error); debug(DBG_CFG, "main cfg: key %s", keyname); -- cgit v1.2.3