mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 18:07:33 -02:30
Merge pull request #219 from jaredevantabor/third-party-errors
Remove that pesky error message
This commit is contained in:
@@ -13,10 +13,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export default
|
export default
|
||||||
['$http', 'ProcessErrors', 'i18n', function($http, ProcessErrors, i18n) {
|
['$http', '$log', 'i18n', function($http, $log, i18n) {
|
||||||
return function (params) {
|
return function (params) {
|
||||||
var scope = params.scope,
|
var url = params.url;
|
||||||
url = params.url;
|
|
||||||
|
|
||||||
return $http({
|
return $http({
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
@@ -116,8 +115,7 @@
|
|||||||
return {"options": options, "error": error};
|
return {"options": options, "error": error};
|
||||||
})
|
})
|
||||||
.catch(function (data) {
|
.catch(function (data) {
|
||||||
ProcessErrors(scope, data.data, data.status, null, { hdr: i18n._('Error!'),
|
$log.error('Failed to get third-party login types. Returned status: ' + data.status );
|
||||||
msg: i18n._('Failed to get third-party login types. Returned status: ') + data.status });
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
|
|||||||
Reference in New Issue
Block a user