Merge pull request #76 from paritytech/detailed_error_report_in_import
Display actual import error when import has failed
This commit is contained in:
commit
b859c210d2
|
@ -23,7 +23,7 @@ pub fn import(cfg: Config, matches: &ArgMatches) -> Result<(), String> {
|
|||
}
|
||||
}
|
||||
Err(Error::TooManyOrphanBlocks) => return Err("Too many orphan (unordered) blocks".into()),
|
||||
Err(_) => return Err("Cannot append block".into()),
|
||||
Err(error) => return Err(format!("Cannot append block: {:?}", error)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue