Skip to content

Commit

Permalink
Reword error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
fisx committed Aug 7, 2019
1 parent d6588ae commit 5168f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/spar/src/Spar/Error.hs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ renderSparError (SAML.CustomError SparNotFound) = Rig
renderSparError (SAML.CustomError SparMissingZUsr) = Right $ Wai.Error status400 "client-error" "[header] 'Z-User' required"
renderSparError (SAML.CustomError SparNotInTeam) = Right $ Wai.Error status403 "no-team-member" "Requesting user is not a team member or not a member of this team."
renderSparError (SAML.CustomError SparNotTeamOwner) = Right $ Wai.Error status403 "insufficient-permissions" "You need to be a team owner."
renderSparError (SAML.CustomError SparSSODisabled) = Right $ Wai.Error status403 "sso-disabled" "Please ask customer support to enable this feature for you."
renderSparError (SAML.CustomError SparSSODisabled) = Right $ Wai.Error status403 "sso-disabled" "Please ask customer support to enable this feature for your team."
renderSparError (SAML.CustomError SparInitLoginWithAuth) = Right $ Wai.Error status403 "login-with-auth" "This end-point is only for login, not binding."
renderSparError (SAML.CustomError SparInitBindWithoutAuth) = Right $ Wai.Error status403 "bind-without-auth" "This end-point is only for binding, not login."
renderSparError (SAML.CustomError SparBindUserDisappearedFromBrig) = Right $ Wai.Error status404 "bind-user-disappeared" "Your user appears to have been deleted?"
Expand Down

0 comments on commit 5168f55

Please sign in to comment.