Skip to content

Commit

Permalink
feat: print error message in deconstructor
Browse files Browse the repository at this point in the history
  • Loading branch information
csirianni committed Dec 6, 2023
1 parent 2c0d705 commit b6fb3d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit b6fb3d3

Please sign in to comment.