panic!("`solc` exited with error exit status code `{}`",code);
}else{
panic!("`solc` exited because it was terminated by a signal");
}
}
},
Err(err)=>{
ifletstd::io::ErrorKind::NotFound=err.kind(){
panic!("`solc` executable not found in `$PATH`. `solc` is required to compile the bridge contracts. please install it: https://solidity.readthedocs.io/en/develop/installing-solidity.html");
}else{
panic!("an error occurred when trying to spawn `solc`: {}",err);