Add exception message

This commit is contained in:
kssenii 2021-04-17 15:16:26 +00:00
parent a31e6606c1
commit 0853b4d1ea

View File

@ -26,7 +26,7 @@ std::string getIdentifierQuote(nanodbc::connection & connection)
}
catch (...)
{
LOG_WARNING(&Poco::Logger::get("ODBCGetIdentifierQuote"), "Cannot fetch identifier quote. Default double quote is used");
LOG_WARNING(&Poco::Logger::get("ODBCGetIdentifierQuote"), "Cannot fetch identifier quote. Default double quote is used. Reason: {}", getCurrentExceptionMessage(false));
return "\"";
}