diff --git a/scwx-qt/source/scwx/qt/config/county_database.cpp b/scwx-qt/source/scwx/qt/config/county_database.cpp index c6fdca8a..a0d7b51c 100644 --- a/scwx-qt/source/scwx/qt/config/county_database.cpp +++ b/scwx-qt/source/scwx/qt/config/county_database.cpp @@ -129,7 +129,14 @@ void Initialize() sqlite3_close(db); // Remove temporary file - std::filesystem::remove(countyDatabaseCache); + std::error_code err; + + if (!std::filesystem::remove(countyDatabaseCache, err)) { + logger_->warn( + "Unable to remove cached copy of database, error code: {} error category: {}", + err.value(), + err.category().name()); + } initialized_ = true; }