Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Conversation

@sunny
Copy link
Contributor

@sunny sunny commented Jan 3, 2023

Hi Makerbot team and happy new year! ✨

This fixes a TODO in the code to raise a custom exception when there is an unhandled HTTP response error, allowing for more easy debug and understanding.

This also fixes when the gem would raise "#{response.code}: #{JSON.parse(response.body)['error']}" without testing if the body is in JSON or not, therefore raising a JSON::ParserError instead of a helpful error message.

@sunny sunny force-pushed the custom-error-response branch from 0f1359c to b0d02de Compare January 3, 2023 12:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant