Skip to content

Commit

Permalink
be even more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Feb 17, 2023
1 parent 94c0421 commit 36d2c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/re_renderer/src/file_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ macro_rules! include_file {

use anyhow::Context as _;
$crate::FileServer::get_mut(|fs| fs.watch(&mut resolver, &file_path, false))
.with_context(|| format!("include_file!({}) failed while trying to import physical path {file_path:?}", $path))
.with_context(|| format!("include_file!({}) (rooted at {:?}) failed while trying to import physical path {file_path:?}", file!(), $path))
.unwrap()
}

Expand Down Expand Up @@ -65,7 +65,7 @@ macro_rules! include_file {
// and canonicalize it.
use anyhow::Context as _;
$crate::get_filesystem().canonicalize(&path)
.with_context(|| format!("include_file!({}) failed while trying to import virtual path {path:?}", $path))
.with_context(|| format!("include_file!({}) (rooted at {:?}) failed while trying to import virtual path {path:?}", file!(), $path))
.unwrap()
}
}};
Expand Down

0 comments on commit 36d2c74

Please sign in to comment.