Commit 979f4ad1 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor bug fix. Add more detail for not enough nodes error.

parent 80353941
......@@ -133,9 +133,11 @@ function Do_GetInstanceStatus()
$webtask = WebTask::LookupByObject($instance->uuid());
if ($webtask && $webtask->exited()) {
if ($webtask->exitcode() == 26) {
$blob["reason"] = "Not enough free nodes, please try again later.";
$blob["reason"] = "Not enough free nodes, please try again later.";
$blob["reason"] .= "\n\n";
$blob["reason"] .= htmlentities($webtask->TaskValue("output"));
}
if ($webtask->exitcode() == 25) {
elseif ($webtask->exitcode() == 25) {
$blob["reason"] = "Not enough available bandwidth for a link.\n\n";
$blob["reason"] .= htmlentities($webtask->TaskValue("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