Merge pull request #765 from jaredevantabor/fix-764

Update error handling on host service after angular upgrade
This commit is contained in:
Jared Tabor 2017-12-04 14:28:41 -08:00 committed by GitHub
commit 4f8d4994cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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){