From e8235072eace2d11db385a53209d41c56687a9fe Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Tue, 26 Sep 2023 16:08:42 -0400 Subject: [PATCH] appease the linting gods --- src/dev-cli.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dev-cli.ts b/src/dev-cli.ts index 16e4949..2e691da 100644 --- a/src/dev-cli.ts +++ b/src/dev-cli.ts @@ -332,7 +332,11 @@ async function runQuestions() { options.fetcher = answers.fetcher; options.sourceId = answers.source; - const source = sources.find(({ id }) => id === answers.source)!; + const source = sources.find(({ id }) => id === answers.source); + + if (!source) { + throw new Error(`No source with ID ${answers.source} found`); + } if (source.type === 'embed') { const sourceAnswers = await prompt([