diff options
author | schneems <richard.schneeman@gmail.com> | 2012-06-09 14:30:45 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2012-06-09 14:30:45 -0500 |
commit | 4c82d3f0a46f18bd6b02f264f6c81bec85d416ed (patch) | |
tree | fd6877a5d946462da58c2b5a54c0c3e8f9140fe1 | |
parent | 6bd729e86f4ead25fe614a76aa652425f1d73942 (diff) | |
download | rails-4c82d3f0a46f18bd6b02f264f6c81bec85d416ed.tar.gz rails-4c82d3f0a46f18bd6b02f264f6c81bec85d416ed.tar.bz2 rails-4c82d3f0a46f18bd6b02f264f6c81bec85d416ed.zip |
add prompt to 404 & 500 pages to check logs
When new programmers push their code to a production server and receive an error they often don't know to check the logs, this simple reminder will help. Most professional applications have custom error pages so this change shouldn't affect them. The wording of the message should not confuse non-developer visitors.
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/public/404.html | 1 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/public/500.html | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/public/404.html b/railties/lib/rails/generators/rails/app/templates/public/404.html index 276c8c1c6a..3d875c342e 100644 --- a/railties/lib/rails/generators/rails/app/templates/public/404.html +++ b/railties/lib/rails/generators/rails/app/templates/public/404.html @@ -22,5 +22,6 @@ <h1>The page you were looking for doesn't exist.</h1> <p>You may have mistyped the address or the page may have moved.</p> </div> + <p>If you are the application owner check the logs for more information.</p> </body> </html> diff --git a/railties/lib/rails/generators/rails/app/templates/public/500.html b/railties/lib/rails/generators/rails/app/templates/public/500.html index dfdb7d0b05..012977d3d2 100644 --- a/railties/lib/rails/generators/rails/app/templates/public/500.html +++ b/railties/lib/rails/generators/rails/app/templates/public/500.html @@ -21,5 +21,6 @@ <div class="dialog"> <h1>We're sorry, but something went wrong.</h1> </div> + <p>If you are the application owner check the logs for more information.</p> </body> </html> |