PresetUpdater: Fail harder on bundle version not present in index
This commit is contained in:
parent
21a59ce710
commit
b49bfadd87
@ -145,8 +145,8 @@ sub OnInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
warn $@ . "\n";
|
show_error(undef, $@);
|
||||||
fatal_error(undef, $@);
|
$self->{mainframe}->Close;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -322,8 +322,9 @@ Updates PresetUpdater::priv::get_config_updates() const
|
|||||||
|
|
||||||
const auto ver_current = idx.find(vp.config_version);
|
const auto ver_current = idx.find(vp.config_version);
|
||||||
if (ver_current == idx.end()) {
|
if (ver_current == idx.end()) {
|
||||||
BOOST_LOG_TRIVIAL(error) << boost::format("Preset bundle (`%1%`) version not found in index: %2%") % idx.vendor() % vp.config_version.to_string();
|
auto message = (boost::format("Preset bundle `%1%` version not found in index: %2%") % idx.vendor() % vp.config_version.to_string()).str();
|
||||||
continue;
|
BOOST_LOG_TRIVIAL(error) << message;
|
||||||
|
throw std::runtime_error(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getting a recommended version from the latest index, wich may have been downloaded
|
// Getting a recommended version from the latest index, wich may have been downloaded
|
||||||
|
Loading…
Reference in New Issue
Block a user