Skip to content

Commit

Permalink
cleanup(core): update the error message when migration fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Nov 18, 2020
1 parent 781ebd5 commit 96c3b2e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/tao/src/commands/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,14 +565,11 @@ async function generateMigrationsJsonAndUpdatePackageJson(
);
}
} catch (e) {
const startVersion = versions(root, {})('@nrwl/workspace');
const installDev = getPackageManagerInstallCommand(packageManager, true);
logger.error(
`NX The migrate command failed. Try the following to migrate your workspace:`
);
logger.error(`> ${installDev} @nrwl/workspace@latest`);
logger.error(
`> nx migrate ${opts.targetPackage}@${opts.targetVersion} --from="@nrwl/workspace@${startVersion}"`
`> npx @nrwl/tao@latest migrate ${opts.targetPackage}@${opts.targetVersion}`
);
logger.error(
`This will use the newest version of the migrate functionality, which might have your issue resolved.`
Expand Down

0 comments on commit 96c3b2e

Please sign in to comment.