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

Default path to Pervasives.__LOC__ in generated code. #54

Open
erlandsona opened this issue Apr 6, 2020 · 0 comments
Open

Default path to Pervasives.__LOC__ in generated code. #54

erlandsona opened this issue Apr 6, 2020 · 0 comments

Comments

@erlandsona
Copy link

We use Decco at work and recently ran into a situation where we we're trying to track down a decode failure before pushing some code to prod and given the {path: "", ...} was hardcoded to an empty string made it incredibly difficult to track down the source of the error.

If we could instead default to Pervasives.__LOC__ this would have been very easy to track down as the error would've pointed to the exact file and line number of the failure.
Or at least in principle.
Even if the line number is off by one or something just knowing the file of the source where the decode is failing would be immensely helpful.

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 a pull request may close this issue.

1 participant