summaryrefslogtreecommitdiff
path: root/minecctl/misc-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'minecctl/misc-commands.c')
-rw-r--r--minecctl/misc-commands.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/minecctl/misc-commands.c b/minecctl/misc-commands.c
index f7f2dea..a4188f9 100644
--- a/minecctl/misc-commands.c
+++ b/minecctl/misc-commands.c
@@ -20,6 +20,7 @@ bool do_list(struct cfg *cfg)
bool do_lint(struct cfg *cfg)
{
struct server *server;
+ const char *error;
bool rv = true;
/* server->scfg.filename check excludes servers created from cmdline */
@@ -32,8 +33,8 @@ bool do_lint(struct cfg *cfg)
/* FIXME: should return bool */
server_read_config(cfg, server);
- if (!scfg_validate(&server->scfg)) {
- error("%s: invalid", server->name);
+ if (!scfg_validate(&server->scfg, &error)) {
+ error("%s: invalid (%s)", server->name, error);
rv = false;
}
}