Hello all,
For various understandable reasons, new apps (and new Rails developers) are likely to generate internal errors, which default to the following message (/public/500.html): "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly."
As the developer, I can look at the logs to see the 500 Internal Service Error and find the issue. However, this is very misleading to a site visitor, because nobody was actually notified about the issue and maybe nobody would take a look at it shortly. If the 500 error message did not claim notification, there's at least a chance that the visitor can communicate with the developer through some other channel and the developer would be able to check logs and solve the issue.
If the default behavior does not alert the developer to an issue, the default message shouldn't state that a notification has happened. Instead, something like the following already-commonly-used error might be more appropriate: "Application Error: An error occurred in the application and your page could not be served." We might also include, if default logging is sufficiently detailed: "If you are the application owner, check your logs for details."
Can we change that in the default /public/500.html created by the rails generator? I'm guessing that newbie Rails developers are more likely to get/cause these error messages than average, and simultaneously less likely to have configured an exception notification system. Those experienced enough to have an exception notification system can change the 500 page as they like.
If a false claim of notification was deliberately chosen, what was the logic behind that?
Thanks much!
WBT