Troubleshooting Joomla: An error has occurred.

As you know Joomla has a bad error reporting. One of the most frustrating error message is ‘An error has occurred.’ followed by some error code like 1146. In this tutorial we will update Joomla’s core file so that it will show a more informative error messages instead of just error code.