1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

more specific 'cannot load parameter'

This commit is contained in:
Zeno Rogue 2023-09-14 15:07:01 +02:00
parent 3b341bb34b
commit 49ca18aef3

View File

@ -67,8 +67,8 @@ struct setting {
virtual ~setting() = default;
virtual void load_from(const string& s) {
if(saver) { saver->load(s); return; }
println(hlog, "cannot load this parameter");
exit(1);
println(hlog, "cannot load parameter: ", parameter_name, " from: ", s);
throw hr_exception("parameter cannot be loaded");
}
virtual bool load_from_animation(const string& s) {
load_from(s); return false;