mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Update error handling on host service after angular upgrade
This commit is contained in:
parent
7fe22e9c53
commit
a3144ee234
@ -45,7 +45,8 @@ export default ['$state', '$stateParams', '$scope', 'RelatedHostsFormDefinition'
|
||||
};
|
||||
HostsService.post(params).then(function(res) {
|
||||
$state.go('^.edit', { host_id: res.data.id }, { reload: true });
|
||||
});
|
||||
})
|
||||
.catch(function(){});
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
return '';
|
||||
},
|
||||
error: function(data, status) {
|
||||
ProcessErrors($rootScope, data, status, null, { hdr: 'Error!',
|
||||
ProcessErrors($rootScope, data.data, status, null, { hdr: 'Error!',
|
||||
msg: 'Call to ' + this.url + '. GET returned: ' + status });
|
||||
},
|
||||
success: function(data){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user