All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 3e17cecd authored by Leigh B Stoller's avatar Leigh B Stoller

Minor tweak to error handling.

parent 937d633f
...@@ -188,13 +188,18 @@ $experiment->LockTables() == 0 ...@@ -188,13 +188,18 @@ $experiment->LockTables() == 0
# Called from user (via web interface). # Called from user (via web interface).
# #
if ($reset || $clear) { if ($reset || $clear) {
ExitWithStatus(1, "Experiment $pid/$eid is not paniced!\n") if (! ($experiment->state() eq EXPTSTATE_PANICED &&
if ($experiment->state() ne EXPTSTATE_PANICED && $experiment->paniced())) {
$experiment->paniced()); print STDERR "Not in panic mode\n";
exit(0);
}
$level = $experiment->paniced(); $level = $experiment->paniced();
} }
else { else {
if ($experiment->state() eq EXPTSTATE_PANICED && $experiment->paniced()) {
print STDERR "Already in panic mode\n";
exit(0);
}
ExitWithStatus(1, "Experiment $pid/$eid is not active!\n") ExitWithStatus(1, "Experiment $pid/$eid is not active!\n")
if (! ($experiment->state() eq EXPTSTATE_ACTIVE || if (! ($experiment->state() eq EXPTSTATE_ACTIVE ||
$experiment->state() eq EXPTSTATE_ACTIVATING || $experiment->state() eq EXPTSTATE_ACTIVATING ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment