Skip to content

Commit

Permalink
don't show error stack if config.json is missing on first app launch
Browse files Browse the repository at this point in the history
  • Loading branch information
Shazbot committed Apr 14, 2024
1 parent 00f7233 commit d75e89d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,14 +484,14 @@ if (!gotTheLock) {
);
if (dataPackData) {
appData.vanillaPacks.push(dataPackData);

await fetchGameUpdates();
}
if (appData.packsData.every((iterPack) => iterPack.path != dataPackData.path)) {
appendPacksData(dataPackData);
}
}
}

await fetchGameUpdates();
}

try {
Expand Down Expand Up @@ -776,7 +776,7 @@ if (!gotTheLock) {
if (i18n.language != languageInConfig) i18n.changeLanguage(languageInConfig);
} catch (err) {
mainWindow?.webContents.send("failedReadingConfig");
console.log(err);
if (err instanceof Error) console.log(err.message);
}

const dataFolder = appData.gamesToGameFolderPaths[appData.currentGame].dataFolder;
Expand Down

0 comments on commit d75e89d

Please sign in to comment.