|
|
@@ -127,10 +127,13 @@ define [
|
|
|
# with new collaborator information.
|
|
|
addNextMember()
|
|
|
, 0
|
|
|
- .catch () ->
|
|
|
+ .catch (err) ->
|
|
|
$scope.state.inflight = false
|
|
|
$scope.state.error = true
|
|
|
- $scope.state.errorReason = null
|
|
|
+ if (err.status? and err.status == 400)
|
|
|
+ $scope.state.errorReason = 'invalid_email'
|
|
|
+ else
|
|
|
+ $scope.state.errorReason = null
|
|
|
|
|
|
$timeout addMembers, 50 # Give email list a chance to update
|
|
|
|