diff options
author | Max Drosdo.www <g1ran1q@gmail.com> | 2020-11-13 00:49:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 08:49:59 +1100 |
commit | 444c2cda4fe4b48ef11fb13848bbedae2d04118e (patch) | |
tree | a14196e16ff3b70e82cd018f3a14f8aea52cdfc0 /cli/main.rs | |
parent | d4c8fa263d44aaafe400a130a52b88f42f738e8d (diff) |
refactor(cli): minor cleanup of main.rs (#8362)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/main.rs b/cli/main.rs index f35a4c587..752e2e5a5 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -733,8 +733,7 @@ pub fn main() { for f in unrecognized_v8_flags { eprintln!("error: V8 did not recognize flag '{}'", f); } - eprintln!(); - eprintln!("For a list of V8 flags, use '--v8-flags=--help'"); + eprintln!("\nFor a list of V8 flags, use '--v8-flags=--help'"); std::process::exit(1); } if v8_flags_includes_help { @@ -854,8 +853,7 @@ pub fn main() { let result = tokio_util::run_basic(fut); if let Err(err) = result { - let msg = format!("{}: {}", colors::red_bold("error"), err.to_string(),); - eprintln!("{}", msg); + eprintln!("{}: {}", colors::red_bold("error"), err.to_string()); std::process::exit(1); } } |