Browse Source

pEpSQLite - Fix delete_db()

LIB-12
heck 4 years ago
parent
commit
6c47eb3eea
  1. 4
      src/pEpSQLite.cc

4
src/pEpSQLite.cc

@ -40,8 +40,8 @@ namespace pEp {
void pEpSQLite::delete_db() void pEpSQLite::delete_db()
{ {
pEpLogClass("called"); pEpLogClass("called");
remove(db_path.c_str()); int status = remove(db_path.c_str());
if (errno) { if (status) {
runtime_error e{string("could not delete db (" + db_path + "): " + strerror(errno))}; runtime_error e{string("could not delete db (" + db_path + "): " + strerror(errno))};
throw (e); throw (e);
} }

Loading…
Cancel
Save