Tweaks to arg_hacks and add v8-flags to repl (#3409)

This commit is contained in:
Kevin (Kun) "Kassimo" Qian 2019-11-26 20:25:14 -08:00 committed by Ry Dahl
parent 866dba8aa1
commit 3451c5fb55
3 changed files with 97 additions and 41 deletions

View file

@ -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);