Add a descriptive error when winedump is missing

This commit is contained in:
Robbert van der Helm
2020-07-16 15:04:07 +02:00
parent 1ee2fe4746
commit 2ec53c78d9
2 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ impl Config {
/// Search for VST2 plugins in all of the registered plugins directories. This will return an
/// error if `winedump` could not be called.
pub fn index_directories(&self) -> Result<BTreeMap<&Path, SearchResults>, std::io::Error> {
pub fn index_directories(&self) -> Result<BTreeMap<&Path, SearchResults>> {
self.plugin_dirs
.par_iter()
.map(|path| files::index(path).map(|search_results| (path.as_path(), search_results)))