Skip to content

Commit fe3c851

Browse files
committed
fixup! fix(@angular/cli): validate package manager version using semver.valid and throw an error if invalid
1 parent 28c1527 commit fe3c851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/cli/src/package-managers/package-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export class PackageManager {
371371
this.#version = stdout.trim();
372372

373373
if (!valid(this.#version)) {
374-
throw new Error(`Invalid semver version for ${this.name}: ${this.#version}`);
374+
throw new Error(`Invalid semver version for ${this.name}: "${this.#version}"`);
375375
}
376376

377377
return this.#version;

0 commit comments

Comments
 (0)