Error message are now correctly set in exceptions.