summaryrefslogtreecommitdiff
path: root/minecproxy
diff options
context:
space:
mode:
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);