Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin: add callback prefixes to exception messages #499

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions src/plugins/mf_priority.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ static int priority_cb (flux_plugin_t *p,
if (update_jobspec_bank (p, userid) < 0) {
flux_jobtap_raise_exception (p, FLUX_JOBTAP_CURRENT_JOB,
"mf_priority", 0,
"failed to update jobspec "
"with bank name");
"job.state.priority: failed to "
"update jobspec with bank name");
return -1;
}

Expand All @@ -578,8 +578,9 @@ static int priority_cb (flux_plugin_t *p,
if (update_jobspec_project (p, userid, bank) < 0) {
flux_jobtap_raise_exception (p, FLUX_JOBTAP_CURRENT_JOB,
"mf_priority", 0,
"failed to update jobspec "
"with project name");
"job.state.priority: failed "
"to update jobspec with "
"project name");
return -1;
}
}
Expand Down Expand Up @@ -761,8 +762,8 @@ static int new_cb (flux_plugin_t *p,
if (update_jobspec_bank (p, userid) < 0) {
flux_jobtap_raise_exception (p, FLUX_JOBTAP_CURRENT_JOB,
"mf_priority", 0,
"failed to update jobspec "
"with bank name");
"job.new: failed to update "
"jobspec with bank name");
return -1;
}
}
Expand Down Expand Up @@ -799,8 +800,8 @@ static int new_cb (flux_plugin_t *p,
if (update_jobspec_project (p, userid, bank) < 0) {
flux_jobtap_raise_exception (p, FLUX_JOBTAP_CURRENT_JOB,
"mf_priority", 0,
"failed to update jobspec with "
"project name");
"job.new: failed to update jobspec "
"with project name");
return -1;
}
}
Expand Down
Loading