Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

feat: clearer errors on processing errors #79

Merged
merged 2 commits into from
Sep 10, 2021
Merged

feat: clearer errors on processing errors #79

merged 2 commits into from
Sep 10, 2021

Conversation

TobiTenno
Copy link
Member

Summary

Improve error reporting when an error occurs

Additional Details

@TobiTenno TobiTenno requested review from nikitaprabhakar, a team and jkuester September 10, 2021 14:46
Comment on lines +186 to 190
} catch (e) {
if (featureFilename) e.featurefile = featureFilename;
if (typeof index !== 'undefined') e.featureline = index + 1;
throw e;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the meat of the change, the rest is wrapping the body of the forEach in a try/catch

@TobiTenno TobiTenno merged commit b888aa6 into main Sep 10, 2021
@TobiTenno TobiTenno deleted the better-errors branch September 10, 2021 14:55
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants