From 5e47e1b6cc68c35757ccac772d745c01b8005305 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 10 Jun 2024 12:36:45 +0200 Subject: [PATCH] feat: Print nicer error messages (#32) --- CHANGELOG.md | 2 ++ breakwater/src/main.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1873663..2f19e6e 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 ([#32]) ### Changed @@ -19,6 +20,7 @@ All notable changes to this project will be documented in this file. [#24]: https://github.com/sbernauer/breakwater/pull/24 [#25]: https://github.com/sbernauer/breakwater/pull/25 [#26]: https://github.com/sbernauer/breakwater/pull/26 +[#32]: https://github.com/sbernauer/breakwater/pull/32 ## [0.14.0] - 2024-05-30 at GPN 22 :) 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")