-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7e2aa7
commit 4732eb3
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ import { log } from './log'; | |
import { buildSetupView } from './setup-readme-view'; | ||
import { testVerifyWebhook } from './test-verify-webhook'; | ||
import verifyWebhook from './verify-webhook'; | ||
import { logger } from './logger'; | ||
|
||
interface BasicAuthObject { | ||
pass: string; | ||
|
@@ -158,6 +159,7 @@ export default class ReadMe { | |
}).then(r => r.json() as Promise<ReadMeVersion[]>); | ||
} catch (e) { | ||
// TODO: Maybe send this to sentry? | ||
logger.error({ err: e, message: 'Error fetching readme data' }) | ||
if (e.status === 401) { | ||
console.error('Invalid ReadMe API key. Contact [email protected] for help!'); | ||
console.error(e.data); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters