diff --git a/parity/configuration.rs b/parity/configuration.rs index 3898962c115..ecb71ed45eb 100644 --- a/parity/configuration.rs +++ b/parity/configuration.rs @@ -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 {