]> granicus.if.org Git - pdns/commitdiff
slightly more helpful error message on not finding our sqlite3 database
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 8 Nov 2012 12:05:38 +0000 (12:05 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 8 Nov 2012 12:05:38 +0000 (12:05 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2866 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/ssqlite3.cc

index a033f8384f680b6f1da7677418cd844d610ec3bd..0af71ac668f33f58525cffc4dd3b9638c4eb31f0 100644 (file)
@@ -23,7 +23,7 @@ SSQLite3::SSQLite3( const std::string & database, bool creat )
   // Open the database connection.
   if(!creat) 
     if ( access( database.c_str(), F_OK ) == -1 )
-      throw sPerrorException( "SQLite database does not exist yet" );
+      throw sPerrorException( "SQLite database '"+database+"' does not exist yet" );
 
   if ( sqlite3_open( database.c_str(), &m_pDB)!=SQLITE_OK )
     throw sPerrorException( "Could not connect to the SQLite database '" + database + "'" );