Skip to content

Commit eceb9a1

Browse files
committed
catch exception instead of error code
1 parent 597c5c9 commit eceb9a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/gameanalytics/GAStore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ namespace gameanalytics
207207
return sqlDatabase;
208208
}
209209

210-
bool GAStore::fixOldDatabaseIfRequired()
210+
bool GAStore::fixOldDatabase()
211211
{
212212
std::filesystem::path oldPath = dbPath;
213213
std::filesystem::path filename = oldPath.filename();
@@ -245,7 +245,7 @@ namespace gameanalytics
245245
if(!std::filesystem::create_directory(p))
246246
return false;
247247

248-
fixOldDatabaseIfRequired();
248+
fixOldDatabase();
249249
}
250250

251251
return true;

source/gameanalytics/GAStore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace gameanalytics
5050

5151
static GAStore& getInstance();
5252

53-
bool fixOldDatabaseIfRequired();
53+
bool fixOldDatabase();
5454
bool trimEventTable();
5555

5656
bool initDatabaseLocation();

0 commit comments

Comments
 (0)