diff --git a/Makefile b/Makefile index 2cc8472c..14e9a150 100644 --- a/Makefile +++ b/Makefile @@ -151,7 +151,7 @@ meta-clean: # few things such as localconfig.json). clean: $(CHECK_CLEAN_SAFETY) - rm -rf build # Handle this part ourself; can confuse git. + rm -rf build # Kill build ourself; may confuse git if contains other repos. git clean -dfx $(ROOT_CLEAN_IGNORES) # Show what clean would delete without actually deleting it. diff --git a/src/tools/pcommandbatch/pcommandbatch.c b/src/tools/pcommandbatch/pcommandbatch.c index 4e1c6991..6324f622 100644 --- a/src/tools/pcommandbatch/pcommandbatch.c +++ b/src/tools/pcommandbatch/pcommandbatch.c @@ -165,11 +165,14 @@ int get_running_server_port_(const struct Context_* ctx, cJSON* state_dict = cJSON_Parse(buf); if (!state_dict) { + // An un-parseable state file is not a recoverable error; go down hard. fprintf(stderr, - "Error: pcommandbatch client %s_%d (pid %d): failed to parse state " - "value.\n", - ctx->instance_prefix, ctx->instance_num, ctx->pid); - return -1; + "Fatal Error: pcommandbatch client %s_%d (pid %d):" + " failed to parse state file value of size %zu.\n", + ctx->instance_prefix, ctx->instance_num, ctx->pid, amt); + fflush(stderr); + abort(); + // return -1; } // If results included output, print it.