Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
exit gracefully if reset arg isn't supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Jan 2, 2019
1 parent 248f4cb commit 789b1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parity/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl Configuration {
fat_db,
compaction,
cache_config,
num: self.args.arg_db_reset_num.expect("the 'num' argument is required"),
num: self.args.arg_db_reset_num.ok_or("the 'num' argument is required")?,
}))
} else if self.args.cmd_db && self.args.cmd_db_kill {
Cmd::Blockchain(BlockchainCmd::Kill(KillBlockchain {
Expand Down

0 comments on commit 789b1d0

Please sign in to comment.