Skip to content

Commit c36033c

Browse files
alan-agius4alexeagle
authored andcommitted
fix(@angular/cli): show full path to project definition when already exists
Fixes #13138
1 parent 39f3bab commit c36033c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/angular/cli/models/command.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// tslint:disable:no-global-tslint-disable no-any
1010
import { logging, strings, tags, terminal } from '@angular-devkit/core';
11+
import * as path from 'path';
1112
import { getWorkspace } from '../utilities/config';
1213
import {
1314
Arguments,
@@ -123,7 +124,10 @@ export abstract class Command<T extends BaseCommandOptions = BaseCommandOptions>
123124
if (this.workspace.configFile) {
124125
this.logger.fatal(tags.oneLine`
125126
The ${this.description.name} command requires to be run outside of a project, but a
126-
project definition was found at "${this.workspace.configFile}".
127+
project definition was found at "${path.join(
128+
this.workspace.root,
129+
this.workspace.configFile,
130+
)}".
127131
`);
128132
throw 1;
129133
}

0 commit comments

Comments
 (0)