Add more detailed error messages