Skip to content
Snippets Groups Projects
Commit 722fdca3 authored by Tim Wickberg's avatar Tim Wickberg Committed by Morris Jette
Browse files

Correct error messages to reflect "remove" rather than "edit".

parent 130d5384
No related branches found
No related tags found
No related merge requests found
...@@ -454,16 +454,16 @@ extern int as_mysql_remove_resv(mysql_conn_t *mysql_conn, ...@@ -454,16 +454,16 @@ extern int as_mysql_remove_resv(mysql_conn_t *mysql_conn,
slurmdb_reservation_rec_t *resv) slurmdb_reservation_rec_t *resv)
{ {
int rc = SLURM_SUCCESS; int rc = SLURM_SUCCESS;
char *query = NULL;//, *tmp_extra = NULL; char *query = NULL;
if (!resv) { if (!resv) {
error("No reservation was given to edit"); error("No reservation was given to remove");
return SLURM_ERROR; return SLURM_ERROR;
} }
if (!resv->id || !resv->time_start || !resv->cluster) { if (!resv->id || !resv->time_start || !resv->cluster) {
error("We need an id, start time, and cluster " error("Need an id, start time, and cluster "
"name to edit a reservation."); "name to remove a reservation.");
return SLURM_ERROR; 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