update profile validator (#13494)

This commit is contained in:
SoftFever
2026-05-06 18:43:23 +08:00
committed by GitHub
parent d84ac149d1
commit 02c9ab6a02

View File

@@ -4549,6 +4549,7 @@ std::pair<PresetsConfigSubstitutions, size_t> PresetBundle::load_vendor_configs_
std::string version_str = it.value();
auto config_version = Semver::parse(version_str);
if (! config_version) {
++m_errors;
throw ConfigurationError((boost::format("vendor %1%'s config version: %2% invalid\nSuggest cleaning the directory %3% firstly")
% vendor_name % version_str % path).str());
} else {