MCPcopy Index your code
hub / github.com/angular/angular-cli / assertIsError

Function assertIsError

packages/angular/cli/src/utilities/error.ts:37–42  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

35 * @param value The value to check.
36 */
37export function assertIsError(value: unknown): asserts value is Error & { code?: string } {
38 assert(
39 isError(value),
40 `Expected a value to be an Error-like object, but received: ${inspect(value)}`,
41 );
42}

Callers 15

runSchematicFunction · 0.90
runCommandFunction · 0.90
runSingleTargetFunction · 0.90
customRequireFunction · 0.90
runMethod · 0.90
runMethod · 0.90
migrateOnlyMethod · 0.90
taskMethod · 0.90
executeSchematicFunction · 0.90
executePackageMigrationsFunction · 0.90

Calls 1

isErrorFunction · 0.85

Tested by

no test coverage detected