Skip to content
Snippets Groups Projects
Commit 33285106 authored by Danny Auble's avatar Danny Auble
Browse files

better debug

parent 2641ad51
No related branches found
No related tags found
No related merge requests found
......@@ -219,8 +219,8 @@ extern int bridge_handle_runtime_errors(const char *function,
case bgsched::RuntimeErrors::BlockFreeError:
/* not a real error */
rc = SLURM_SUCCESS;
error("%s: Error freeing block %s.", function,
bg_record->bg_block_id);
debug2("%s: Error freeing block %s.", function,
bg_record->bg_block_id);
break;
case bgsched::RuntimeErrors::BlockCreateError:
error("%s: Error creating block %s.", function,
......
......@@ -546,6 +546,18 @@ extern int bridge_block_add_user(bg_record_t *bg_record, char *user_name)
#ifdef HAVE_BG_FILES
try {
Block::addUser(bg_record->bg_block_id, user_name);
} catch (const bgsched::InputException& err) {
rc = bridge_handle_input_errors("Block::addUser",
err.getError().toValue(),
bg_record);
if (rc != SLURM_SUCCESS)
return rc;
} catch (const bgsched::RuntimeException& err) {
rc = bridge_handle_runtime_errors("Block::addUser",
err.getError().toValue(),
bg_record);
if (rc != SLURM_SUCCESS)
return rc;
} catch(...) {
// FIXME: this should do something, but for now we won't
// error("Remove block request failed ... continuing.");
......
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