Added connection error handling to testDatasource() method.
This commit is contained in:
@@ -72,6 +72,12 @@ function (angular, _, kbn) {
|
||||
};
|
||||
}
|
||||
});
|
||||
}, function(error) {
|
||||
return {
|
||||
status: "error",
|
||||
title: "Connection failed",
|
||||
message: "Could not connect to " + error.config.url
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user