Skip to content

Commit

Permalink
fix(core): handle falsy error in params.ts#handleErrors (#10509)
Browse files Browse the repository at this point in the history
Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
  • Loading branch information
gioragutt and AgentEnder committed Jun 9, 2022
1 parent 3e3ab09 commit cad9032
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nx/src/utils/params.ts
Expand Up @@ -72,6 +72,8 @@ export async function handleErrors(isVerbose: boolean, fn: Function) {
try {
return await fn();
} catch (err) {
err ??= new Error('Unknown error caught');

if (err.constructor.name === 'UnsuccessfulWorkflowExecution') {
logger.error('The generator workflow failed. See above.');
} else if (err.message) {
Expand Down

1 comment on commit cad9032

@vercel
Copy link

@vercel vercel bot commented on cad9032 Jun 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev

Please sign in to comment.