Added more detailed message to error