Ghost
King Coder
I noticed recently that a popular forum (Forum Promotion) is erroring because the database cannot be reached. There is either an incorrect setting in the config file, or the database server is down. Either way, I noticed that the page is showing us the real error. This is not a great idea because the "end user" does not need to know the "true error". A simple "this site is unavailable at this time" will suffice. When you share a database error with visitors, you open up the opportunity for your server to be hacked. Although my example (seen in picture below) is not very specific and is not easy to exploit / hack, it's a great example of "over sharing" error messages with the public.
A connection refused error is commonly associated with an incorrect setup file. Most likely there was a password change, a change to the server firewall, or a general outage with the database. However, why would this error be shown to a user? It serves no purpose. If a visitor cannot access the site, there is absolutely no reason for them to see that there was a connection refusal error on "line 1626" (seen in example below...). A basic unavailable message, maintenance warning, or general alert would be just fine...
Anyways - what are all of your thoughts on sharing the "exact reasons" for downtime, server outages, etc with your community or site visitors? I personally think that it's important to hide the real errors so that only site developers can view them... and use generic error messages for users so that no potential security flaws are exposed by public error messages.

A connection refused error is commonly associated with an incorrect setup file. Most likely there was a password change, a change to the server firewall, or a general outage with the database. However, why would this error be shown to a user? It serves no purpose. If a visitor cannot access the site, there is absolutely no reason for them to see that there was a connection refusal error on "line 1626" (seen in example below...). A basic unavailable message, maintenance warning, or general alert would be just fine...
Anyways - what are all of your thoughts on sharing the "exact reasons" for downtime, server outages, etc with your community or site visitors? I personally think that it's important to hide the real errors so that only site developers can view them... and use generic error messages for users so that no potential security flaws are exposed by public error messages.
