mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 05:34:49 +00:00
Better exception output.
This commit is contained in:
parent
3e51605bc9
commit
b892188878
5 changed files with 16 additions and 9 deletions
|
@ -1,4 +1,6 @@
|
|||
extern crate libc;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
|
||||
use libc::c_char;
|
||||
use libc::c_int;
|
||||
|
@ -107,6 +109,8 @@ impl Drop for Deno {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
log::set_max_level(log::LevelFilter::Debug);
|
||||
|
||||
unsafe { deno_init() };
|
||||
|
||||
set_flags();
|
||||
|
@ -122,7 +126,7 @@ fn main() {
|
|||
|
||||
d.execute("deno_main.js", "denoMain();")
|
||||
.unwrap_or_else(|err| {
|
||||
println!("Error {}\n", err);
|
||||
error!("{}", err);
|
||||
std::process::exit(1);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue