summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-12-11 12:13:33 -0500
committerRyan Dahl <ry@tinyclouds.org>2018-12-11 15:22:54 -0500
commita8c3b448049912ead5ba025fee9568dcc0786573 (patch)
tree9794451d74b4ab554668a4fdac32fa4a30400a2a /src
parent81c8926ee9469a792d33e650eb8b8ac007de1977 (diff)
Remove custom panic handler.
This was introduced because Tokio would swallow panics. This is still the case, but this panic handler causes more problems than it solves. It requires people to know how to use debuggers to inspect stacktraces. TODO: - Fix Tokio to not swallow errors. - Be vigilant in the intrim to not introduce broken tests due to this unfortunate "feature" of tokio.
Diffstat (limited to 'src')
-rw-r--r--src/main.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index f8888feea..13a093a7e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -77,14 +77,6 @@ fn print_err_and_exit(err: js_errors::JSError) {
}
fn main() {
- // Rust does not die on panic by default. And -Cpanic=abort is broken.
- // https://github.com/rust-lang/cargo/issues/2738
- // Therefore this hack.
- std::panic::set_hook(Box::new(|panic_info| {
- eprintln!("{}", panic_info.to_string());
- std::process::abort();
- }));
-
log::set_logger(&LOGGER).unwrap();
let args = env::args().collect();
let (flags, rest_argv, usage_string) =