mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-24 12:13:13 -08:00
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:
parent
4f8a010637
commit
fcf784c13c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue