fix failing init if log file is missing
This commit is contained in:
@@ -158,9 +158,10 @@ async fn main_loop(ui_queue: ui::MsgQueue) -> Result<()> {
|
|||||||
.await
|
.await
|
||||||
.context("init task failed")??;
|
.context("init task failed")??;
|
||||||
|
|
||||||
let log_path = Path::new("./audio-conv.log")
|
let log_path = Path::new(".")
|
||||||
.canonicalize()
|
.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 {
|
ui_queue.push(ui::Msg::Init {
|
||||||
task_len: conv_args.len(),
|
task_len: conv_args.len(),
|
||||||
|
|||||||
Reference in New Issue
Block a user