Skip to content

Commit

Permalink
Fix format string
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Jul 17, 2023
1 parent 7b4b96d commit 09bf5ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions validator_manager/src/move_validators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,11 @@ impl MoveConfig {
.collect::<Result<Vec<_>, _>>()
.map(Validators::Specific)?,
},
(None, None) => Err(format!("Must supply either --{VALIDATORS_FLAG} or --{COUNT_FLAG}."))?,
(None, None) => Err(format!(
"Must supply either --{VALIDATORS_FLAG} or --{COUNT_FLAG}."
))?,
(Some(_), Some(_)) => {
Err("Cannot supply both --{:VALIDATORS_FLAG} and --{:COUNT_FLAG}.")?
Err("Cannot supply both --{VALIDATORS_FLAG} and --{COUNT_FLAG}.")?
}
};

Expand Down

0 comments on commit 09bf5ab

Please sign in to comment.