Skip to content

Commit

Permalink
style(collaborator-modal/client/controller): updated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed May 3, 2021
1 parent 45bd0f0 commit f50f43e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ function CollaboratorModalController(
if (err) {
// Make the alert message correspond to the error code
if (err.response.status === StatusCodes.BAD_REQUEST) {
Toastr.error('Outdated admin page, please refresh.')
Toastr.error(
'Please ensure that the email entered is a valid government email. If the error still persists, refresh and try again later.',
)
} else if (err.response.status === StatusCodes.UNPROCESSABLE_ENTITY) {
Toastr.error(`${email} is not part of a whitelisted agency.`)
} else {
Expand Down

0 comments on commit f50f43e

Please sign in to comment.