From 58807d12eefe264e817d8dc4b7075dbb25e4c2d2 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 9 May 2021 20:05:14 -0500 Subject: temp debug stuff --- src/constants.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/constants.ts') 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 { }, ) const data = await r.json() + console.log('ok github api returned') const file = { path: data.path, -- cgit