Skip to content

Commit

Permalink
fix(misc): create-nx-workspace should display short error messages (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Apr 21, 2023
1 parent 04a0c77 commit ddf613c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-nx-workspace/src/utils/error-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class CreateNxWorkspaceError extends Error {
}

export function mapErrorToBodyLines(error: Error): string[] {
const errorLines = error.message?.split('\n').filter((line) => !!line);
const errorLines = error.message?.split('\n').filter((line) => !!line.trim());
if (errorLines.length < 3) {
const lines = [`Error: ${error.message}`];
if (process.env.NX_VERBOSE_LOGGING) {
Expand Down

0 comments on commit ddf613c

Please sign in to comment.