diff --git a/src/hm/HookManagerDriver.cc b/src/hm/HookManagerDriver.cc index a0e708f1a1..d5c73453a6 100644 --- a/src/hm/HookManagerDriver.cc +++ b/src/hm/HookManagerDriver.cc @@ -172,7 +172,7 @@ void HookManagerDriver::protocol( if ( !info.empty() && info[0] != '-' ) { - vm->set_template_error_message(os.str()); + vm->set_template_error_message(oss.str()); vmpool->update(vm); } diff --git a/src/pool/PoolObjectSQL.cc b/src/pool/PoolObjectSQL.cc index f2c43d6147..5de6f9f99b 100644 --- a/src/pool/PoolObjectSQL.cc +++ b/src/pool/PoolObjectSQL.cc @@ -132,7 +132,7 @@ void PoolObjectSQL::set_template_error_message(const string& message) str[24] = '\0'; // Get rid of final enter character - error_value.insert(make_pair("TIME_STAMP",str)); + error_value.insert(make_pair("TIMESTAMP",str)); error_value.insert(make_pair("MESSAGE",message)); attr = new VectorAttribute(error_attribute_name,error_value);