return error when rejecting

This commit is contained in:
Kyle Spearrin 2017-10-12 23:35:58 -04:00
parent 641c76ae62
commit e44cf6e7ee
1 changed files with 2 additions and 2 deletions

View File

@ -158,8 +158,8 @@ angular
cryptoService.setOrgKeys(orgs);
_setDeferred.resolve(_userProfile);
}
}, function () {
_setDeferred.reject();
}, function (error) {
_setDeferred.reject(error);
});
return _setDeferred.promise;