|
|
@@ -127,11 +127,13 @@ define [
|
|
|
# with new collaborator information.
|
|
|
addNextMember()
|
|
|
, 0
|
|
|
- .catch (err) ->
|
|
|
+ .catch (httpResponse) ->
|
|
|
+ {data, status, headers, config } = httpResponse
|
|
|
$scope.state.inflight = false
|
|
|
$scope.state.error = true
|
|
|
- if err.status? and err.status == 400
|
|
|
- $scope.state.errorReason = 'invalid_email'
|
|
|
+
|
|
|
+ if data?.errorReason?
|
|
|
+ $scope.state.errorReason = data?.errorReason
|
|
|
else
|
|
|
$scope.state.errorReason = null
|
|
|
|