Skip to content

Commit

Permalink
🙅🏽 throw exception for malformed RepoProviderSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejpurves committed Sep 5, 2023
1 parent 1b9f19d commit 352842c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,7 @@ export function makeBinderUrls(
if (!Object.keys(providerMap).includes(provider))
throw Error(`Unknown provider ${opts.repoProvider}`);

if (!providerMap[provider].makeUrls) throw Error(`No makeUrls function for ${provider}`);

return providerMap[provider].makeUrls(opts);
}

0 comments on commit 352842c

Please sign in to comment.