Skip to content

Commit

Permalink
Merge pull request ansible#765 from jaredevantabor/fix-764
Browse files Browse the repository at this point in the history
Update error handling on host service after angular upgrade
  • Loading branch information
jaredevantabor authored Dec 4, 2017
2 parents 7fe22e9 + a3144ee commit 4f8d499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(){});
};
}
];
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 4f8d499

Please sign in to comment.