Added more details in case of error.