[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/krecipes/src/DBBackend
From: Jason Kivlighn <confederacy2 () excite ! com>
Date: 2003-11-28 23:33:14
[Download RAW message or body]
CVS commit by jkivlighn:
Display the database's error message, when failing to load database
M +2 -1 mysqlrecipedb.cpp 1.44
--- kdenonbeta/krecipes/src/DBBackend/mysqlrecipedb.cpp #1.43:1.44
@@ -14,5 +14,5 @@
#include <kstandarddirs.h>
-
+#include <kdebug.h>
MySQLRecipeDB::MySQLRecipeDB(QString host, QString user, QString pass, QString \
DBname,bool init):RecipeDB(host, user,pass,DBname,init) @@ -33,4 +33,5 @@ \
MySQLRecipeDB::MySQLRecipeDB(QString hos {
std::cerr<<QString("Could not open DB as user: %1. You may not have \
permissions. Exiting.\n").arg(user).latin1(); + kdDebug()<<"MySQL \
database message: "<<database->lastError().databaseText()<<endl; exit(1);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic