Fix query error notification in tabular view.

Instead of "Unsupported value type" when type="error", the delivered
error message should be shown.
This commit is contained in:
Julius Volz 2013-08-02 09:04:13 +02:00
parent 4f8a010637
commit fcf784c13c

View file

@ -534,6 +534,9 @@ Prometheus.Graph.prototype.handleConsoleResponse = function(data, textStatus) {
case "scalar":
tBody.append("<tr><td>scalar</td><td>" + data.Value + "</td></tr>");
break;
case "error":
alert(data.Value);
break;
default:
alert("Unsupported value type!");
break;