1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-11-30 20:50:49 +01:00

fix: Improve config error debugging

Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
Louis Chmn 2026-10-28 16:26:29 +01:00
commit c3ec8c93b6

View file

@ -17,7 +17,11 @@ fn find_app_repos(config: &HazeConfig) -> Result<impl Iterator<Item = PathBuf>>
let apps_dirs = once(config.sources_root.as_path().join("apps"))
.chain(config.app_directories.iter().cloned());
let dir_handles = apps_dirs
.map(|dir| read_dir(dir).into_diagnostic())
.map(|dir| {
read_dir(&dir)
.into_diagnostic()
.wrap_err_with(|| format!("Failed to list app directory: {}", dir))
})
.collect::<Result<Vec<_>>>()?;
Ok(dir_handles
.into_iter()