Skip to content

Commit

Permalink
Clearer user messaging when node in use is 1.1.0 or less (mimblewimbl…
Browse files Browse the repository at this point in the history
…e#168)

* Modify error message when checking against old nodes to reflect 1.x.x series

* update output text
  • Loading branch information
yeastplume authored Jun 29, 2019
1 parent 5467515 commit 1db6029
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bin/cmd/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ pub fn wallet_command(wallet_args: &ArgMatches<'_>, config: GlobalWalletConfig)
// it gets a 404 for the version function
if Version::parse(&v.node_version) < Version::parse(MIN_COMPAT_NODE_VERSION) {
let version = if v.node_version == "1.0.0" {
"1.0.x series"
"1.x.x series"
} else {
&v.node_version
};
println!("Specified Grin Node (version {}) is outdated and incompatible with this wallet version", version);
println!("Please update the node or use a different one");
println!("The Grin Node in use (version {}) is outdated and incompatible with this wallet version.", version);
println!("Please update the node to version 2.0.0 or later and try again.");
return 1;
}
}
Expand Down

0 comments on commit 1db6029

Please sign in to comment.