Added connection error handling to testDatasource() method.

This commit is contained in:
Alexander Zobnin
2015-08-19 14:24:15 +03:00
parent b5bd3fffe5
commit 693cbe1d61

View File

@@ -72,6 +72,12 @@ function (angular, _, kbn) {
};
}
});
}, function(error) {
return {
status: "error",
title: "Connection failed",
message: "Could not connect to " + error.config.url
};
});
};