Print version when panic (#3608)

* Print version when panic

* Fix tests.
This commit is contained in:
Sergei Pepyakin
2019-09-12 17:52:26 +02:00
committed by Gavin Wood
parent 634ca73e50
commit 981b3c79ee
3 changed files with 16 additions and 9 deletions
+3 -3
View File
@@ -77,7 +77,7 @@ const NODE_KEY_ED25519_FILE: &str = "secret_ed25519";
/// Executable version. Used to pass version information from the root crate.
pub struct VersionInfo {
/// Implemtation name.
/// Implementaiton name.
pub name: &'static str,
/// Implementation version.
pub version: &'static str,
@@ -191,13 +191,13 @@ where
I: IntoIterator,
<I as IntoIterator>::Item: Into<std::ffi::OsString> + Clone,
{
panic_handler::set(version.support_url);
let full_version = service::config::full_version_from_strs(
version.version,
version.commit
);
panic_handler::set(version.support_url, &full_version);
let matches = CoreParams::<CC, RP>::clap()
.name(version.executable_name)
.author(version.author)