Skip to content

Add error wrapping in the obj package - #34

Merged
EliCDavis merged 3 commits into
EliCDavis:mainfrom
alexykot:bugfix/errors-wrapping
Jul 9, 2024
Merged

Add error wrapping in the obj package#34
EliCDavis merged 3 commits into
EliCDavis:mainfrom
alexykot:bugfix/errors-wrapping

Conversation

@alexykot

@alexykot alexykot commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

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.

@alexykot

alexykot commented Jul 9, 2024

Copy link
Copy Markdown
Contributor Author

I've fixed parsing as well. That branch is based on this one so I'll rebase and PR the fix after this is merged.

@EliCDavis

Copy link
Copy Markdown
Owner

This is great! Thanks!

@EliCDavis
EliCDavis merged commit a7ae359 into EliCDavis:main Jul 9, 2024
@alexykot
alexykot deleted the bugfix/errors-wrapping branch July 9, 2024 20:23
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