Unverified Commit 9d2194ae authored by Michael Müller's avatar Michael Müller
Browse files

Only convert path if specified

parent 64c60767
......@@ -178,8 +178,10 @@ impl BuildCommand {
verbosity = Verbosity::Quiet;
}
let metadata_contract_path =
ManifestPath::try_from(self.metadata_contract_path.as_ref()).ok();
let metadata_contract_path = self.metadata_contract_path.as_ref().map(|_| {
ManifestPath::try_from(self.metadata_contract_path.as_ref())
.expect("conversion of metadata contract path failed")
});
let args = ExecuteArgs {
manifest_path,
verbosity,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment