display actual import error when import has failed

This commit is contained in:
Svyatoslav Nikolsky 2019-04-09 15:24:05 +03:00
parent 3794cb0890
commit 5e19a21423
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)),
}
}