|
@ -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); |
|
|
} |
|
|
} |
|
|