Merge pull request #219 from jaredevantabor/third-party-errors

Remove that pesky error message
This commit is contained in:
Jared Tabor
2017-08-08 09:46:05 -07:00
committed by GitHub

View File

@@ -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 });
}); });
}; };
}]; }];