Add error wrapping throughout the obj package, to help debugging.
I came across an oddly formed .obj file, a product of conversion from STL by some online converter, and it is failing to parse. Debugging that turned out to be very difficult without wrapping as it was just strconv.Atoi: parsing "": invalid syntax message with no details of what, where or why. This PR fixes that.
Add error wrapping throughout the
obj
package, to help debugging.I came across an oddly formed .obj file, a product of conversion from STL by some online converter, and it is failing to parse. Debugging that turned out to be very difficult without wrapping as it was just
strconv.Atoi: parsing "": invalid syntax
message with no details of what, where or why. This PR fixes that.