Better error message on catch all exception block