Permalink
Browse files

Added some helpful debug info for poorly formed JSON configs

  • Loading branch information...
1 parent 4d529f1 commit 0f6aa93591646a0a477d6569bf160a21293a75ed @nall nall committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 cpu-miner.c
View
@@ -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;

0 comments on commit 0f6aa93

Please sign in to comment.