Make error handling more user-friendly.