Skip to content

Commit

Permalink
fix(macros): makes macro errors consistent with others
Browse files Browse the repository at this point in the history
Mainly this is newline fixes

Closes #118
  • Loading branch information
kbknapp committed May 15, 2015
1 parent 3c0636e commit 7bfa9ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,18 +227,17 @@ macro_rules! value_t_or_exit {
match v.parse::<$t>() {
Ok(val) => val,
Err(e) => {
println!("{} isn't a valid {}\n\t{}\n{}\nPlease re-run with --help for \
println!("'{}' isn't a valid value\n\t{}\n\n{}\n\nPlease re-run with --help for \
more information",
v,
stringify!($t),
e,
$m.usage());
::std::process::exit(1);
}
}
},
None => {
println!("Argument \"{}\" not found or is not valid\n{}\nPlease re-run with \
println!("The argument '{}' was not found or is not valid\n\n{}\n\nPlease re-run with \
--help for more information",
$v,
$m.usage());
Expand Down Expand Up @@ -266,7 +265,7 @@ macro_rules! value_t_or_exit {
tmp
},
None => {
println!("Argument \"{}\" not found or is not valid\n{}\nPlease re-run with \
println!("The argument '{}' not found or is not valid\n\n{}\n\nPlease re-run with \
--help for more information",
$v,
$m.usage());
Expand Down

0 comments on commit 7bfa9ab

Please sign in to comment.