Skip to content

Error in multiple validators return a gibberish error #238

Open
@gilles-crealp

Description

@gilles-crealp

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions