removed redundant state_root function from spec, improve spec error types (#10955)

This commit is contained in:
Marek Kotewicz
2019-08-12 16:10:46 +02:00
committed by David
parent ffc066e5a4
commit 509fda727b
4 changed files with 19 additions and 29 deletions

View File

@@ -137,7 +137,7 @@ impl SpecType {
SpecType::Dev => Ok(spec::new_instant()),
SpecType::Custom(ref filename) => {
let file = fs::File::open(filename).map_err(|e| format!("Could not load specification file at {}: {}", filename, e))?;
Spec::load(params, file)
Spec::load(params, file).map_err(|e| e.to_string())
}
}
}