Updated the error message to include more details