Fix some error messages in persist

This commit is contained in:
Alexander van Gessel 2013-04-03 10:04:12 +02:00
parent 399ce6a583
commit a3fd22e46f

View File

@ -153,11 +153,11 @@ void verify_and_set_global_variable(const vconfig &pcfg)
{ {
bool valid = true; bool valid = true;
if (!pcfg.has_attribute("to_global")) { 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; valid = false;
} }
if (!pcfg.has_attribute("from_local")) { 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. // TODO: allow for global namespace.
if (!pcfg.has_attribute("namespace")) { if (!pcfg.has_attribute("namespace")) {