GRN2-192: Made error pages more descriptive (#620)

* GRN2-192

* Brought back error codes
This commit is contained in:
farhatahmad
2019-07-10 11:51:19 -04:00
committed by Jesus Federico
parent 523d9a38f2
commit c7a0c6a463
11 changed files with 38 additions and 56 deletions

View File

@ -119,7 +119,7 @@ en:
message: Invalid BigBlueButton Endpoint and Secret
title: Server Error
internal:
message: Oh no! Looks like something went wrong on our end.
message: Looks like something went wrong on our end.
help: The error has been logged, we'll take a look!
migration_error:
contact_admin: If you are not an administrator, please contact one.
@ -138,17 +138,18 @@ en:
confirmation: doesn't match %{attribute}
inclusion: is not included in the list
not_found:
message: Whoops! Looks like we can't find that.
message: Sorry! The page you are looking for does not exist.
help: Is it possible its been removed?
user_message: User Not Found.
user_help: Sorry, this user is not registered.
user_not_found:
help: Please contact an administrator.
message: Sorry, this user is not registered.
user_missing:
help: Please verify the URL and try again
message: The URL that you have entered is not valid.
title: Errors
unauthorized:
message: You do not have access to this application
help: If you believe this is a mistake, please contact your system administrator.
unprocessable:
message: Oops! Request is unprocessable.
help: Unfortunately this isn't a valid request.
expired_reset_token: Password reset link has expired!
features:
title: Features

View File

@ -22,7 +22,6 @@ Rails.application.routes.draw do
# Error routes.
match '/401', to: 'errors#unauthorized', via: :all, as: :unauthorized
match '/404', to: 'errors#not_found', via: :all, as: :not_found
match '/422', to: 'errors#unprocessable', via: :all
match '/500', to: 'errors#internal_error', via: :all, as: :internal_error
# Signin/Signup routes.