Skip to content

Commit

Permalink
fix(@schematics/update): improve error message when finding incompati…
Browse files Browse the repository at this point in the history
…ble peer dependencies

fix #14562
  • Loading branch information
alan-agius4 authored and alexeagle committed May 30, 2019
1 parent ce01c42 commit 231afee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/schematics/update/update/index.ts
Expand Up @@ -5,7 +5,7 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { logging } from '@angular-devkit/core';
import { logging, tags } from '@angular-devkit/core';
import {
Rule,
SchematicContext,
Expand Down Expand Up @@ -214,7 +214,10 @@ function _validateUpdatePackages(
});

if (!force && peerErrors) {
throw new SchematicsException(`Incompatible peer dependencies found. See above.`);
throw new SchematicsException(tags.stripIndents
`Incompatible peer dependencies found.
Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.`);
}
}

Expand Down

0 comments on commit 231afee

Please sign in to comment.