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

Add first implementation of getting line from context on warn and error #9

Merged
merged 2 commits into from
Feb 13, 2023

Conversation

xadaemon
Copy link
Contributor

@xadaemon xadaemon commented Feb 13, 2023

I'm opening this PR as a RFC on this first implementation of this, this is a brutish way to do it but should work just fine.

This PR aims to solve #2

@xadaemon xadaemon changed the title Add first implementation of getting line from context on warn and error #2 Add first implementation of getting line from context on warn and error Feb 13, 2023
@xadaemon xadaemon changed the title #2 Add first implementation of getting line from context on warn and error Add first implementation of getting line from context on warn and error Feb 13, 2023
@xadaemon
Copy link
Contributor Author

Caveat of this simple implementation: if there is no path in the context it will not provide the offending line.

@gregschmit gregschmit self-assigned this Feb 13, 2023
@gregschmit gregschmit self-requested a review February 13, 2023 16:58
@xadaemon
Copy link
Contributor Author

Can you approve the workflow to run to validate the code?

@xadaemon
Copy link
Contributor Author

Any more points you want to discuss on this one?

@gregschmit gregschmit merged commit 82d922a into gregschmit:master Feb 13, 2023
@gregschmit
Copy link
Owner

Nope, lgtm; thank you!

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