mirror of
https://github.com/grafana/grafana.git
synced 2025-01-24 23:37:01 -06:00
Serialize an elasticsearch error previously printed as 'Object'
This commit is contained in:
parent
4b59cee17a
commit
269583a6a1
@ -146,7 +146,7 @@ function (angular, _, moment, kbn, ElasticQueryBuilder, IndexPattern, ElasticRes
|
||||
return { status: "success", message: "Data source is working", title: "Success" };
|
||||
}, function(err) {
|
||||
if (err.data && err.data.error) {
|
||||
return { status: "error", message: err.data.error, title: "Error" };
|
||||
return { status: "error", message: angular.toJson(err.data.error), title: "Error" };
|
||||
} else {
|
||||
return { status: "error", message: err.status, title: "Error" };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user