summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-08-01 09:47:04 +0100
committerNaz <ndpm13@ch-naseem.com>2025-08-01 09:47:04 +0100
commit1b50c5ce06d2356124991fa48e6881f61f646ca3 (patch)
treee291498bc9b03d16ba16ecb882f7724d57853eb3 /src/main.rs
parent180fe06facf1f8b4796df69a42596643990b9d32 (diff)
🐛fix: exit with non-zero status when error occurs
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 1ea31f8..7840fae 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -36,5 +36,6 @@ async fn run() -> Result<()> {
async fn main() {
if let Err(e) = run().await {
eprintln!("Error: {e}");
+ std::process::exit(1);
}
}