For a while Rescues has been in need of some love. Finding errors inside of loaded files is sometimes infuriating, especially when the exception messages sometimes point you in a totally incorrect direction.
In addition, the introduction of Routes has lead to 500 errors when Routes failed to load a controller -- such as when the controller's source file had syntax errors.
This patch fixes both of these issues. Exceptions which are thrown from inside a file now obtain a blamed_files -- this list is shown on the standard diagnostics page. (Provided that it is non-empty.)
The second issue is frequently seen as a nil has no method capitalize error, and is now resolved as well.
I've given this patch a high priority due to the 500 errors it fixes.