mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-20 20:24:33 +02:00
livestatus: log which table misses the column
This commit is contained in:
parent
4731faea89
commit
55d9eb3548
@ -89,7 +89,7 @@ Column Table::GetColumn(const String& name) const
|
|||||||
std::map<String, Column>::const_iterator it = m_Columns.find(name);
|
std::map<String, Column>::const_iterator it = m_Columns.find(name);
|
||||||
|
|
||||||
if (it == m_Columns.end())
|
if (it == m_Columns.end())
|
||||||
BOOST_THROW_EXCEPTION(std::invalid_argument("Column '" + name + "' does not exist."));
|
BOOST_THROW_EXCEPTION(std::invalid_argument("Column '" + name + "' does not exist in table '" + GetName() + "'."));
|
||||||
|
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user