From 1349f9e01fae43bb853f5458f69e348a069ec3fe Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Sat, 19 Dec 2020 13:15:32 +0100 Subject: [PATCH] fix failing init if log file is missing --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 499d417..43bf48d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -158,9 +158,10 @@ async fn main_loop(ui_queue: ui::MsgQueue) -> Result<()> { .await .context("init task failed")??; - let log_path = Path::new("./audio-conv.log") + let log_path = Path::new(".") .canonicalize() - .context("unable to canonicalize path to log file")?; + .context("unable to canonicalize path to log file")? + .join("audio-conv.log"); ui_queue.push(ui::Msg::Init { task_len: conv_args.len(),