Commit 051c07d2 authored by Leigh Stoller's avatar Leigh Stoller

Minor fixes.

parent 11897549
......@@ -3586,8 +3586,9 @@ sub DoIdleData()
fatal("No slice for instance!");
}
if ($slice->WaitForLock(10)) {
$errcode = GENIRESPONSE_BUSY;
$errmsg ="Experiment is busy, cannot lock it. Try again later.";
$errcode = GENIRESPONSE_BUSY;
$exitcode = 1;
$errmsg ="Experiment is busy, cannot lock it. Try again later.";
goto bad;
}
#
......
......@@ -1718,6 +1718,11 @@ function Do_MaxExtension()
SPITAJAX_ERROR(-1, "Unable to extend your experiment at this ".
"time, please try again later");
}
elseif ($webtask->exitcode() == GENIRESPONSE_REFUSED) {
SPITAJAX_ERROR($webtask->exitcode(),
"No extension is possible at this time because of ".
"prior commitments to other projects or users.");
}
else {
SPITAJAX_ERROR(1, "Unable to extend your experiment at this ".
"time: ". $webtask->output());
......
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