]> granicus.if.org Git - icinga2/commitdiff
livestatus: log which table misses the column
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 11 Jul 2013 12:20:43 +0000 (14:20 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 11 Jul 2013 12:20:43 +0000 (14:20 +0200)
components/livestatus/table.cpp

index dfb5ac652191093f66f4c653d39edcc1dd029e34..f9628224b8b4e5cced3e83cfb5c0956c6be36665 100644 (file)
@@ -89,7 +89,7 @@ Column Table::GetColumn(const String& name) const
        std::map<String, Column>::const_iterator it = m_Columns.find(name);
 
        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;
 }