Added more details in error message