Skip to content

Commit

Permalink
fix: correctly resolve relative log file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kabouzeid committed Jul 27, 2024
1 parent 009f43a commit 0ecc902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/job_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl JobWatcher {
}
.to_str()
.unwrap()
.to_owned()
.to_owned();
};

for cap in RE
Expand Down Expand Up @@ -196,7 +196,7 @@ impl JobWatcher {
path.replace_range(m.range(), replacement);
}

Some(PathBuf::from(path))
Some(PathBuf::from(working_dir).join(path)) // works even if `path` is absolute
}
}

Expand Down

0 comments on commit 0ecc902

Please sign in to comment.