Skip to content

Fix error handling for formatGtfsLine#182

Merged
brendannee merged 1 commit intoBlinkTagInc:masterfrom
bstandaert-wustl:ignore-errors-fix
Feb 23, 2025
Merged

Fix error handling for formatGtfsLine#182
brendannee merged 1 commit intoBlinkTagInc:masterfrom
bstandaert-wustl:ignore-errors-fix

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