aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-07-15 16:15:48 +0200
committerAlex Auvolat <alex@adnab.me>2022-07-15 16:15:48 +0200
commit24c6607304323f0dd3c70bf952bfc5775735ca70 (patch)
tree824cd15d393d38f69f8d4fd8cfb5fa7921ee69ee /src/main.rs
parent64a322b4cb11a73c2da5f1a44649384a16b3ee2b (diff)
downloadaerogramme-24c6607304323f0dd3c70bf952bfc5775735ca70.tar.gz
aerogramme-24c6607304323f0dd3c70bf952bfc5775735ca70.zip
Some more FETCH things work
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index a4e22ff..50eb2ed 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,6 +9,9 @@ mod mail;
mod server;
mod time;
+#[cfg(test)]
+mod mail_parser_tests;
+
use std::path::PathBuf;
use anyhow::{bail, Result};
@@ -121,7 +124,8 @@ async fn main() -> Result<()> {
// Abort on panic (same behavior as in Go)
std::panic::set_hook(Box::new(|panic_info| {
- tracing::error!("{}", panic_info.to_string());
+ eprintln!("{}", panic_info.to_string());
+ eprintln!("{:?}", backtrace::Backtrace::new());
std::process::abort();
}));