From 0ae5969118e3c9a084ef0467b46572661a0af6b7 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 30 May 2019 19:43:09 +0200 Subject: [PATCH] fix(@schematics/update): improve error message when finding incompatible peer dependencies fix #14562 --- packages/schematics/update/update/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/schematics/update/update/index.ts b/packages/schematics/update/update/index.ts index 7ac57a6e7fcc..4fac798518a1 100644 --- a/packages/schematics/update/update/index.ts +++ b/packages/schematics/update/update/index.ts @@ -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, @@ -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.`); } }