Make error messages better in debug mode