You should replace ```fail!``` with ```crash!``` (which is defined in ```common/util.rs```).