Skip to content

Fix error handling for formatGtfsLine #182

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

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

bstandaert-wustl
Copy link
Contributor

formatGtfsLine can throw an error if a required field is missing, but since it was called outside the try/catch, the error wasn't being propagated upwards, which meant that ignoreErrors wouldn't have any effect on it - this PR simply moves the try/catch.

@brendannee brendannee merged commit e7678c0 into BlinkTagInc:master Feb 23, 2025
2 checks passed
@brendannee
Copy link
Member

Thanks for identifying this issue and making a PR.

This is live in the latest release: https://github.com/BlinkTagInc/node-gtfs/releases/tag/4.15.14

@bstandaert-wustl
Copy link
Contributor Author

Thanks!

This is a very useful tool, thanks for making it.

@bstandaert-wustl bstandaert-wustl deleted the ignore-errors-fix branch February 23, 2025 18:10
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.

2 participants