mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Tweaks to arg_hacks and add v8-flags to repl (#3409)
This commit is contained in:
parent
866dba8aa1
commit
3451c5fb55
3 changed files with 97 additions and 41 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue