summaryrefslogtreecommitdiff
path: root/minecproxy
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-07-12 00:00:26 +0200
committerDavid Härdeman <david@hardeman.nu>2020-07-12 00:00:26 +0200
commitb56b003fc13a4e12f97c6cfd5dd650e928d6e016 (patch)
treea68b48604bccd9a96225bf1c3be21fc05a022b6b /minecproxy
parente6fdfd4c4c753fe3a06edc4ae3b767c57c10d3f7 (diff)
Teach minecctl to split things into data and cfg dir, also read config variables from the server.properties file
Diffstat (limited to 'minecproxy')
-rw-r--r--minecproxy/main.c6
1 files changed, 4 insertions, 2 deletions
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);