From b83b9db7122723b2db37a80fed0199128e7b9260 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 18 Mar 2023 14:36:56 +0000 Subject: [PATCH] repl: print errors with causes --- CHANGELOG.md | 1 + deltachat-repl/src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bdd67bc3..ace9fd044 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - "full message view" not needed because of footers that go to contact status #4151 - Pick up system's light/dark mode in generated message HTML #4150 - Support non-persistent configuration with DELTACHAT_* env +- Print deltachat-repl errors with causes. #4166 ### Fixes - Fix segmentation fault if `dc_context_unref()` is called during diff --git a/deltachat-repl/src/main.rs b/deltachat-repl/src/main.rs index 33074d6ab..80b1bd8be 100644 --- a/deltachat-repl/src/main.rs +++ b/deltachat-repl/src/main.rs @@ -359,7 +359,7 @@ async fn start(args: Vec) -> Result<(), Error> { false } Err(err) => { - println!("Error: {err}"); + println!("Error: {err:#}"); true } } @@ -374,7 +374,7 @@ async fn start(args: Vec) -> Result<(), Error> { break; } Err(err) => { - println!("Error: {err}"); + println!("Error: {err:#}"); break; } }