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:
parent
9343bc9a61
commit
c3ec8c93b6
1 changed files with 5 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue