diff options
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); |