For some reason, the panic message was being truncated. So here we're printing it first, and then calling panic