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 the file reference on a YAML error message #443

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

max-sixty
Copy link
Collaborator

@max-sixty max-sixty commented Feb 18, 2024

I had a process get killed half-way through writing a pending snapshot and it was difficult to debug what was going on, especially since in PRQL we gitignore pending snapshots.

So this adds the file name to the error message

Not sure this is the best way — very open to feedback; in retrospect it seems somewhat verbose to add a simple reference in an error message.

I had a process get killed half-way through writing a pending snapshot and it was difficult to debug what was going on, especially since in PRQL we gitignore pending snapshots.

Not sure this is the best way — very open to feedback; in retrospect it seems somewhat verbose to add a simple reference in an error message.
@mitsuhiko mitsuhiko merged commit 64d6647 into mitsuhiko:master Feb 19, 2024
5 of 6 checks passed
@mitsuhiko
Copy link
Owner

Not perfect but also not worth optimizing this too much at the moment. I will try to clean this up a bit later.

@max-sixty max-sixty deleted the yaml-error branch February 20, 2024 02:04
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