Skip to content
Snippets Groups Projects
Commit a12fb24f authored by David Bigagli's avatar David Bigagli
Browse files

Improve the debug message to distinguish where in the code

the error happened.
parent 19aa843f
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ int slurm_step_launch (slurm_step_ctx_t *ctx,
memset(&launch, 0, sizeof(launch));
if (ctx == NULL || ctx->magic != STEP_CTX_MAGIC) {
error("Not a valid slurm_step_ctx_t!");
error("%s: Not a valid slurm_step_ctx_t", __func__);
slurm_seterrno(EINVAL);
return SLURM_ERROR;
}
......@@ -403,7 +403,7 @@ int slurm_step_launch_add (slurm_step_ctx_t *ctx,
memset(&launch, 0, sizeof(launch));
if (ctx == NULL || ctx->magic != STEP_CTX_MAGIC) {
error("Not a valid slurm_step_ctx_t!");
error("%s: Not a valid slurm_step_ctx_t", __func__);
slurm_seterrno(EINVAL);
return SLURM_ERROR;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment