diff --git a/src/common/SurgeStorage.cpp b/src/common/SurgeStorage.cpp index 4796a7b2b89..13132eaf992 100644 --- a/src/common/SurgeStorage.cpp +++ b/src/common/SurgeStorage.cpp @@ -516,12 +516,25 @@ SurgeStorage::SurgeStorage(const SurgeStorage::SurgeStorageConfig &config) : oth initPatchCategoryType = Surge::Storage::getUserDefaultValue( this, Surge::Storage::InitialPatchCategoryType, "Factory"); - fxUserPreset = std::make_unique(); - fxUserPreset->doPresetRescan(this); - - modulatorPreset = std::make_unique(); - modulatorPreset->forcePresetRescan(); + try + { + fxUserPreset = std::make_unique(); + fxUserPreset->doPresetRescan(this); + } + catch (fs::filesystem_error &e) + { + reportError(e.what(), "Error Scanning FX Presets"); + } + try + { + modulatorPreset = std::make_unique(); + modulatorPreset->forcePresetRescan(); + } + catch (fs::filesystem_error &e) + { + reportError(e.what(), "Error Scnning Modulator Presets"); + } memoryPools = std::make_unique(this); }