Skip to content

Commit

Permalink
fix(@angular/cli): show full path to project definition when already …
Browse files Browse the repository at this point in the history
…exists

Fixes #13138
  • Loading branch information
alan-agius4 authored and alexeagle committed Dec 6, 2018
1 parent a613a97 commit 3178314
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/angular/cli/models/command.ts
Expand Up @@ -8,6 +8,7 @@

// tslint:disable:no-global-tslint-disable no-any
import { logging, strings, tags, terminal } from '@angular-devkit/core';
import * as path from 'path';
import { getWorkspace } from '../utilities/config';
import {
Arguments,
Expand Down Expand Up @@ -123,7 +124,10 @@ export abstract class Command<T extends BaseCommandOptions = BaseCommandOptions>
if (this.workspace.configFile) {
this.logger.fatal(tags.oneLine`
The ${this.description.name} command requires to be run outside of a project, but a
project definition was found at "${this.workspace.configFile}".
project definition was found at "${path.join(
this.workspace.root,
this.workspace.configFile,
)}".
`);
throw 1;
}
Expand Down

0 comments on commit 3178314

Please sign in to comment.