mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 19:50:33 +00:00
Fix some error messages in persist
This commit is contained in:
parent
399ce6a583
commit
a3fd22e46f
@ -153,11 +153,11 @@ void verify_and_set_global_variable(const vconfig &pcfg)
|
||||
{
|
||||
bool valid = true;
|
||||
if (!pcfg.has_attribute("to_global")) {
|
||||
LOG_PERSIST << "Error: [set_global_variable] missing required attribute \"from_global\"";
|
||||
LOG_PERSIST << "Error: [set_global_variable] missing required attribute \"to_global\"";
|
||||
valid = false;
|
||||
}
|
||||
if (!pcfg.has_attribute("from_local")) {
|
||||
LOG_PERSIST << "Warning: [set_global_variable] missing attribute \"to_local\", global variable will be cleared";
|
||||
LOG_PERSIST << "Warning: [set_global_variable] missing attribute \"from_local\", global variable will be cleared";
|
||||
}
|
||||
// TODO: allow for global namespace.
|
||||
if (!pcfg.has_attribute("namespace")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user