MCPcopy Create free account
hub / github.com/angular/dev-infra / constructor

Method constructor

ng-dev/utils/git/git-client.ts:22–27  ·  view source on GitHub ↗
(client: GitClient, unsanitizedArgs: string[])

Source from the content-addressed store, hash-verified

20import {GithubClient} from './github.js';
21import {getRepositoryGitUrl} from './github-urls.js';
22import {determineRepoBaseDirFromCwd} from '../repo-directory.js';
23
24/** Error for failed Git commands. */
25export class GitCommandError extends Error {
26 // Note: Do not expose the unsanitized arguments as a public property. NodeJS
27 // could print the properties of an error instance and leak e.g. a token.
28 constructor(client: GitClient, unsanitizedArgs: string[]) {
29 // Errors are not guaranteed to be caught. To ensure that we don't
30 // accidentally leak the Github token that might be used in a command,

Callers

nothing calls this directly

Calls 1

sanitizeConsoleOutputMethod · 0.45

Tested by

no test coverage detected