diff --git a/plugins/builtin/source/content/views/view_pattern_editor.cpp b/plugins/builtin/source/content/views/view_pattern_editor.cpp index 432f211d2..cd7dc63c4 100644 --- a/plugins/builtin/source/content/views/view_pattern_editor.cpp +++ b/plugins/builtin/source/content/views/view_pattern_editor.cpp @@ -790,7 +790,11 @@ namespace hex::plugin::builtin { if (!file.isValid()) continue; - runtime.getInternals().preprocessor->preprocess(runtime, file.readString()); + try { + runtime.getInternals().preprocessor->preprocess(runtime, file.readString()); + } catch (pl::core::err::PreprocessorError::Exception &e) { + log::warn("Failed to preprocess file {} during MIME analysis: {}", entry.path().string(), e.what()); + } if (foundCorrectType) this->m_possiblePatternFiles.get(provider).push_back(entry.path());