Added more details to exception message.