From b6fb3d39e109a5a340654abdad68966af64f4ab5 Mon Sep 17 00:00:00 2001 From: Cedric Sirianni Date: Wed, 6 Dec 2023 15:03:33 -0500 Subject: [PATCH] feat: print error message in deconstructor --- backend/src/database.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/database.cpp b/backend/src/database.cpp index aa68415..cff3ff0 100644 --- a/backend/src/database.cpp +++ b/backend/src/database.cpp @@ -89,6 +89,7 @@ namespace database if (result != SQLITE_OK) { const char *error_msg = sqlite3_errmsg(db_); + fprintf(stderr, "SQLite error: %s\n", error_msg); std::abort(); } }