Commit c5f134b6 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Handle error when graphs ajax call fails.

parent 92c8e4ba
......@@ -284,6 +284,12 @@ window.ShowIdleGraphs = (function ()
var callback = function(json) {
if (json.code) {
console.info("Failed to get idledata: " + json.value);
if (showWait) {
sup.HideWaitWait(function () {
sup.SpitOops("oops",
"Could not idledata: " + json.value);
});
}
return;
}
_.each(json.value, function(data, name) {
......
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