From 6849514f50122768ce4bf3dcae3dd4c052cea845 Mon Sep 17 00:00:00 2001 From: Deborah Mahn Date: Thu, 28 Sep 2023 14:00:14 +0200 Subject: [PATCH] modify error output --- src/bin/lnk2bodyfile/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lnk2bodyfile/main.rs b/src/bin/lnk2bodyfile/main.rs index 0f172d5..816ab7b 100644 --- a/src/bin/lnk2bodyfile/main.rs +++ b/src/bin/lnk2bodyfile/main.rs @@ -20,7 +20,7 @@ fn main() -> Result<()> { for filename in cli.lnk_files.iter() { let lnkfile = match LnkFile::try_from(filename) { Ok(file) => file, - Err(e) => {println!("{:#?}", e); continue;}, + Err(why) => {log::error!("{why}"); continue;}, }; lnkfile.print_bodyfile(); }