added a better panic message.