Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in multiple validators return a gibberish error #238

Open
gilles-crealp opened this issue Apr 14, 2022 · 0 comments
Open

Error in multiple validators return a gibberish error #238

gilles-crealp opened this issue Apr 14, 2022 · 0 comments
Assignees

Comments

@gilles-crealp
Copy link

gilles-crealp commented Apr 14, 2022

Describe the bug
Error in multiple validators return a gibberish error.

To Reproduce

program
  .argument('<test1>', '', { validator (value) { throw new Error('error 1') } })
  .argument('<test2>', '', { validator (value) { throw new Error('error 2') } })

program.run()

Expected behavior
Must return a list of validators errors.

Actual behavior
Return a gibberish error (with too much code to be understandable).

Environment informations

  • OS: Windows
  • OS version: 10
  • Shell: cmd
  • Caporal version: 2.0.2
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

No branches or pull requests

2 participants