diff --git a/src/core/database.cpp b/src/core/database.cpp index 352cf04..3ed8e97 100644 --- a/src/core/database.cpp +++ b/src/core/database.cpp @@ -251,6 +251,7 @@ unsigned int Database::storeSellers(std::vector>& seller if (retCode != SQLITE_DONE) { //rollbackTransaction(); std::string errMsg(sqlite3_errmsg(db_)); + errMsg += "\nSellerNo: " + std::to_string(seller->getSellerNo()); sqlite3_finalize(stmt); throw std::runtime_error(errMsg); } @@ -748,4 +749,4 @@ void Database::updateCashPointNo(int oldCashPointNo, int newCashPointNo) sqlite3_finalize(stmt); endTransaction(); -} \ No newline at end of file +}