Here's a preview of what it might look like using error-chain.
It currently doesn't compute the line/column for the error message. I'd like to take a crack at showing a non-copying approach that would make it easier to do this. I think I'll do it in a separate PR.
There are no tests to assert invalid input. I could start adding these if you decide to go with this.
Here's a preview of what it might look like using error-chain.
It currently doesn't compute the line/column for the error message. I'd like to take a crack at showing a non-copying approach that would make it easier to do this. I think I'll do it in a separate PR.
There are no tests to assert invalid input. I could start adding these if you decide to go with this.