summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/SQLite3.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-15 12:46:23 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-15 12:46:23 +0100
commit1651c61ca217ec1256b0c71d4c9fb5ffb496d0e5 (patch)
treef904b57f8b22c2010795490a8e15dae538596dd2 /lib/Plugins/SQLite3.cpp
parentb4bd0face2bafdf314f9ba4a3537106c967b8022 (diff)
downloadabrt-1651c61ca217ec1256b0c71d4c9fb5ffb496d0e5.tar.gz
abrt-1651c61ca217ec1256b0c71d4c9fb5ffb496d0e5.tar.xz
abrt-1651c61ca217ec1256b0c71d4c9fb5ffb496d0e5.zip
SQLite3: log db filename on open error
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/SQLite3.cpp')
-rw-r--r--lib/Plugins/SQLite3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Plugins/SQLite3.cpp b/lib/Plugins/SQLite3.cpp
index d95c273b..c3f7a7d8 100644
--- a/lib/Plugins/SQLite3.cpp
+++ b/lib/Plugins/SQLite3.cpp
@@ -262,7 +262,7 @@ void CSQLite3::Connect()
{
if (ret != SQLITE_CANTOPEN)
{
- throw CABRTException(EXCEP_PLUGIN, "Can't open database: %s", sqlite3_errmsg(m_pDB));
+ throw CABRTException(EXCEP_PLUGIN, "Can't open database '%s': %s", m_sDBPath.c_str(), sqlite3_errmsg(m_pDB));
}
ret = sqlite3_open_v2(m_sDBPath.c_str(),
@@ -272,7 +272,7 @@ void CSQLite3::Connect()
);
if (ret != SQLITE_OK)
{
- throw CABRTException(EXCEP_PLUGIN, "Can't create database: %s", sqlite3_errmsg(m_pDB));
+ throw CABRTException(EXCEP_PLUGIN, "Can't create database '%s': %s", m_sDBPath.c_str(), sqlite3_errmsg(m_pDB));
}
}