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

gherkin-go: missing error handling #170

Merged
merged 1 commit into from Apr 2, 2017
Merged

Conversation

l3pp4rd
Copy link
Member

@l3pp4rd l3pp4rd commented Mar 25, 2017

Summary

Adds error handling as discussed in previous PR

Details

gherkin.GherkinEvents(paths ...string) now returns a list of events and an unexpected error.
The error might be due to:

  • failure to open feature file for reading
  • unexpected gherkin token
  • unexpected gherkin parser error

The cli exits with status code 1 in case of such error and prints it to stderr, errors expected from parser are interpreted as events.

@aslakhellesoy aslakhellesoy merged commit 1f2b305 into master Apr 2, 2017
aslakhellesoy added a commit that referenced this pull request Apr 2, 2017
@aslakhellesoy aslakhellesoy deleted the gherkin-go-errors branch July 12, 2018 21:13
@lock
Copy link

lock bot commented Jul 12, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants