summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kbarcode/sqltables.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kbarcode/sqltables.cpp b/kbarcode/sqltables.cpp
index 9c4aec7..5efae3c 100644
--- a/kbarcode/sqltables.cpp
+++ b/kbarcode/sqltables.cpp
@@ -269,9 +269,10 @@ bool SqlTables::newTables( const TQString & username, const TQString & password,
TQSqlDatabase::removeDatabase( database );
KMessageBox::information( 0, i18n("Created table ")+database+i18n(" successfully!") );
} else {
+ TQSqlError dbError = dbase->lastError();
dbase->close();
TQSqlDatabase::removeDatabase(drivers[driver]->initdb( database ));
- KMessageBox::sorry( 0, i18n("Can't connect to database.") );
+ KMessageBox::sorry(0, i18n("Can't connect to database.") + "\n" + dbError.driverText() + "\n" + dbError.databaseText());
return false;
}