Merge pull request #76 from paritytech/detailed_error_report_in_import

Display actual import error when import has failed
This commit is contained in:
Svyatoslav Nikolsky 2019-04-09 18:16:55 +03:00 committed by GitHub
commit b859c210d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)),
}
}