From 3451c5fb55528427a8417fbceea86dc187fc93c5 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Tue, 26 Nov 2019 20:25:14 -0800 Subject: Tweaks to arg_hacks and add v8-flags to repl (#3409) --- cli/deno_error.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/deno_error.rs') diff --git a/cli/deno_error.rs b/cli/deno_error.rs index b16fb3fa6..8cff29d30 100644 --- a/cli/deno_error.rs +++ b/cli/deno_error.rs @@ -23,6 +23,11 @@ pub struct DenoError { msg: String, } +pub fn print_msg_and_exit(msg: &str) { + eprintln!("{}", msg); + std::process::exit(1); +} + pub fn print_err_and_exit(err: ErrBox) { eprintln!("{}", err.to_string()); std::process::exit(1); -- cgit v1.2.3