diff options
author | mat <github@matdoes.dev> | 2021-05-09 20:05:14 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-05-09 20:05:14 -0500 |
commit | 58807d12eefe264e817d8dc4b7075dbb25e4c2d2 (patch) | |
tree | 53f7c02ea6cddcc5c053da56e57ddbc5755b02ac /src/constants.ts | |
parent | 919a610cf5fcb8c4714a3be147ab5461778bbf2f (diff) | |
download | skyblock-api-58807d12eefe264e817d8dc4b7075dbb25e4c2d2.tar.gz skyblock-api-58807d12eefe264e817d8dc4b7075dbb25e4c2d2.tar.bz2 skyblock-api-58807d12eefe264e817d8dc4b7075dbb25e4c2d2.zip |
temp debug stuff
Diffstat (limited to 'src/constants.ts')
-rw-r--r-- | src/constants.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/constants.ts b/src/constants.ts index 52c104c..6c5c1c5 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -47,7 +47,8 @@ async function fetchGithubApi(method: string, route: string, headers?: any, json }, headers), } ) - } catch { + } catch (err) { + console.log('bruh, errored', err) // if there's an error, wait a second and try again await new Promise((resolve) => setTimeout(resolve, 1000)) return await fetchGithubApi(method, route, headers, json) @@ -86,6 +87,7 @@ function fetchFile(path: string): Promise<GithubFile> { }, ) const data = await r.json() + console.log('ok github api returned') const file = { path: data.path, |