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:
parent
d4c8fa263d
commit
444c2cda4f
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue