improve message when an exception is raised