MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / throwIfAnyFailed

Function throwIfAnyFailed

packages/backend/src/connectionUtils.ts:41–47  ·  view source on GitHub ↗
(results: PromiseSettledResult<T>[])

Source from the content-addressed store, hash-verified

39}
40
41export function throwIfAnyFailed<T>(results: PromiseSettledResult<T>[]) {
42 const failedResult = results.find(result => result.status === 'rejected');
43 if (failedResult) {
44 Sentry.captureException(failedResult.reason);
45 throw failedResult.reason;
46 }
47}

Callers 15

getReposOwnedByUsersFunction · 0.85
getReposForOrgsFunction · 0.85
getReposFunction · 0.85
getGitLabReposFromConfigFunction · 0.85
getReposOwnedByUsersFunction · 0.85
getReposForOrgsFunction · 0.85
getReposFunction · 0.85
getReposForOrganizationsFunction · 0.85
getReposForProjectsFunction · 0.85
getReposFunction · 0.85
cloudGetReposForProjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected