Skip to content

Commit

Permalink
reduce error verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Nov 22, 2024
1 parent 52ad7a6 commit 744cbf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ export async function getSteamAPIData(options: GetDataOptions): Promise<any> {
if (statusCode === 429) {
await new Promise((resolve) => setTimeout(resolve, 2000));
}
throw new Error('[EXCEPTION] status: ' + statusCode + ' message: ' + err.message);
} else {
throw err;
}
throw err;
}
console.timeEnd(target);
if (options.raw) {
Expand Down

0 comments on commit 744cbf2

Please sign in to comment.