Skip to content

Commit 808c771

Browse files
committed
Minor improvement for error messages in DBBrowserDB
1 parent 9dd5f99 commit 808c771

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/sqlitedb.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ bool DBBrowserDB::executeSQL ( const QString & statement, bool dirtyDB, bool log
496496

497497
if(ok)
498498
{
499-
lastErrorMessage.clear();
499+
lastErrorMessage = tr("no error");
500500
return true;
501501
} else {
502502
lastErrorMessage = QString("%1 (%2)").arg(QString::fromUtf8(errmsg)).arg(statement);
@@ -703,8 +703,6 @@ int64_t DBBrowserDB::addRecord(const QString& sTableName)
703703
sInsertstmt = emptyInsertStmt(table);
704704
}
705705

706-
lastErrorMessage = "";
707-
708706
if(!executeSQL(sInsertstmt))
709707
{
710708
qWarning() << "addRecord: " << lastErrorMessage;

0 commit comments

Comments
 (0)