Add error handling to the slack API requests, and associated tests

This commit is contained in:
David Taylor
2017-07-07 11:23:25 +01:00
parent f001320574
commit 95dd6bc09c
3 changed files with 34 additions and 11 deletions
@@ -28,7 +28,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
var response = e.jqXHR.responseJSON
var error_key = 'chat_integration.test_modal.error'
debugger;
if(response['error_key']){
error_key = response['error_key']
}