Update error handling on host service after angular upgrade

This commit is contained in:
Jared Tabor 2017-12-04 13:52:34 -08:00
parent 7fe22e9c53
commit a3144ee234
No known key found for this signature in database
GPG Key ID: 1B343EC4C3CF7E5C
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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){