Skip to content

Commit

Permalink
fix(server): include more context when reading config files
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmarc committed Sep 12, 2024
1 parent d786828 commit d39aaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm-server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ fn collect_includes(p: impl AsRef<Path>) -> anyhow::Result<Vec<(String, parsed::
let path = entry.path();
let ext = path.extension().and_then(OsStr::to_str);
if matches!(ext, Some("toml") | Some("json")) {
res.push(include_file(path)?)
res.push(include_file(&path).context(format!("reading {}", path.display()))?)
}
}
_ => continue,
Expand Down

0 comments on commit d39aaf4

Please sign in to comment.