Skip to content

fix(@angular/cli): show full path to project definition when already exists #13141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/angular/cli/models/command.ts
Original file line number Diff line number Diff line change
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