Fix incorrect exception message.