From 0f6aa93591646a0a477d6569bf160a21293a75ed Mon Sep 17 00:00:00 2001 From: Jon Nall Date: Mon, 25 Mar 2013 22:03:50 -0700 Subject: [PATCH] Added some helpful debug info for poorly formed JSON configs --- cpu-miner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu-miner.c b/cpu-miner.c index 64c7daed0e..ff65ff1d82 100644 --- a/cpu-miner.c +++ b/cpu-miner.c @@ -789,7 +789,7 @@ static void parse_arg (int key, char *arg) opt_config = json_load_file(arg, &err); #endif if (!json_is_object(opt_config)) { - applog(LOG_ERR, "JSON decode of %s failed", arg); + applog(LOG_ERR, "JSON decode of '%s' failed(%d): %s", arg, err.line, err.text); show_usage(); } break;