summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml1
-rw-r--r--src/main.rs7
2 files changed, 8 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4eebeef..eb7b64a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,6 +41,7 @@ futures = "0.3"
getset = "0.1"
git2 = "0.13"
handlebars = { version = "3", features = ["no_logging"] }
+human-panic = "1"
humantime = "2.1"
indicatif = "0.15"
indoc = "1"
diff --git a/src/main.rs b/src/main.rs
index 45f587f..807032f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -84,6 +84,13 @@ use crate::util::progress::ProgressBars;
#[tokio::main]
async fn main() -> Result<()> {
+ human_panic::setup_panic!(Metadata {
+ name: env!("CARGO_PKG_NAME").into(),
+ version: env!("CARGO_PKG_VERSION").into(),
+ authors: "Matthias Beyer <matthias.beyer@atos.net>".into(),
+ homepage: "atos.net/de/deutschland/sc".into(),
+ });
+
let _ = env_logger::try_init()?;
debug!("Debugging enabled");