mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
more specific 'cannot load parameter'
This commit is contained in:
parent
3b341bb34b
commit
49ca18aef3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user