diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-11-26 20:25:14 -0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-11-26 20:25:14 -0800 |
commit | 3451c5fb55528427a8417fbceea86dc187fc93c5 (patch) | |
tree | e5818c2fdfebd2072dec3ed572ffd60e3424fad0 /cli/deno_error.rs | |
parent | 866dba8aa116677143a354af7f3271e4f9c417e1 (diff) |
Tweaks to arg_hacks and add v8-flags to repl (#3409)
Diffstat (limited to 'cli/deno_error.rs')
-rw-r--r-- | cli/deno_error.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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); |