Now if ariadne prints an error for that test, I want it to give me the line number 3, not 1, because I want to know where the error is in the file, not in the string. I then automatically add the line number with a macro. I hope that makes sense. This has been super helpful for me :)
If the other implementation is preferred I could also adopt that PR and fix it up based on the feedback there.
This is an alternative to https://github.com/zesterer/ariadne/pull/7 and also closes https://github.com/zesterer/ariadne/issues/6. I think this implementation is a bit simpler and hopefully easier to review.
To reiterate the use case. I have code like this:
Now if ariadne prints an error for that test, I want it to give me the line number 3, not 1, because I want to know where the error is in the file, not in the string. I then automatically add the line number with a macro. I hope that makes sense. This has been super helpful for me :)
If the other implementation is preferred I could also adopt that PR and fix it up based on the feedback there.