Skip to content

Prevents duplicate error messages in CLI#220

Open
tkesgar wants to merge 2 commits intounjs:mainfrom
tkesgar:adjust-console-error-output
Open

Prevents duplicate error messages in CLI#220
tkesgar wants to merge 2 commits intounjs:mainfrom
tkesgar:adjust-console-error-output

Conversation

@tkesgar
Copy link

@tkesgar tkesgar commented Apr 19, 2025

This PR slightly improves the cli error message by handling the error thrown by downloadTemplate:

  • If --verbose is specified: print the full error stack; otherwise just print the error message
  • Exit with code = 1

This prevents duplicate error message from being written into output, while also allow users to check the full error stack by using --verbose flag.

Before After
Screenshot 2025-04-19 165335 Screenshot 2025-04-19 165245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant