1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

refactor(cli): minor cleanup of main.rs (#8362)

This commit is contained in:
Max Drosdo.www 2020-11-13 00:49:59 +03:00 committed by GitHub
parent d4c8fa263d
commit 444c2cda4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -733,8 +733,7 @@ pub fn main() {
for f in unrecognized_v8_flags { for f in unrecognized_v8_flags {
eprintln!("error: V8 did not recognize flag '{}'", f); eprintln!("error: V8 did not recognize flag '{}'", f);
} }
eprintln!(); eprintln!("\nFor a list of V8 flags, use '--v8-flags=--help'");
eprintln!("For a list of V8 flags, use '--v8-flags=--help'");
std::process::exit(1); std::process::exit(1);
} }
if v8_flags_includes_help { if v8_flags_includes_help {
@ -854,8 +853,7 @@ pub fn main() {
let result = tokio_util::run_basic(fut); let result = tokio_util::run_basic(fut);
if let Err(err) = result { if let Err(err) = result {
let msg = format!("{}: {}", colors::red_bold("error"), err.to_string(),); eprintln!("{}: {}", colors::red_bold("error"), err.to_string());
eprintln!("{}", msg);
std::process::exit(1); std::process::exit(1);
} }
} }