From d89cca326efe9fcf2502c685dd414f5ef726e6da Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 10 Jun 2024 12:34:20 +0200 Subject: [PATCH] feat: Print nicer error messages --- CHANGELOG.md | 1 + breakwater/src/main.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1873663..352a54c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. - Try to improve performance by calling `madvise` to inform Kernel we are reading sequentially ([#24]) - Expose metric on denied connection counts ([#26]) +- Print nicer error messages ([#XX]) ### Changed diff --git a/breakwater/src/main.rs b/breakwater/src/main.rs index 9ef19a0..5402c11 100644 --- a/breakwater/src/main.rs +++ b/breakwater/src/main.rs @@ -78,6 +78,7 @@ pub enum Error { } #[tokio::main] +#[snafu::report] async fn main() -> Result<(), Error> { if env::var("RUST_LOG").is_err() { env::set_var("RUST_LOG", "info")