Commit 72978359 authored by Leigh B Stoller's avatar Leigh B Stoller

Show resource error help only when its a resource error; I forgot to

do that, always intended to.
parent 2c19db89
......@@ -491,6 +491,10 @@ $(function ()
status_message = "Something went wrong, sorry! " +
"We've been notified.";
}
if (_.has(json.value, "code") &&
json.value.code == GENIRESPONSE_INSUFFICIENT_NODES) {
$('#error_panel .resource-error').removeClass("hidden");
}
status_html = "<font color=red>failed</font>";
ProgressBarUpdate();
DisableButtons();
......
......@@ -142,6 +142,8 @@ function Do_GetInstanceStatus()
# Reflect errors back to the user.
$webtask = $instance->WebTask();
if ($webtask && $webtask->exited()) {
$blob["code"] = $webtask->exitcode();
if ($webtask->exitcode() == GENIRESPONSE_INSUFFICIENT_NODES) {
# All the info in the results from the cluster.
$blob["reason"] = "";
......
......@@ -306,7 +306,7 @@ pre {
<code style="white-space: pre-wrap" id="error_panel_text"></code>
</div>
<div class="panel-footer">
<div class="resource-error">
<div class="resource-error hidden">
<b>More info about resource errors (not enough nodes):</b>
<ul>
<li> To see how many nodes are available right now, or
......
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