Moo-Ack-Productions / MCprep

Blender python addon to increase workflow for creating minecraft renders and animations
https://theduckcow.com/MCprep
GNU General Public License v3.0
268 stars 25 forks source link

Added error object for better user experience #530

Closed StandingPadAnimations closed 4 months ago

StandingPadAnimations commented 5 months ago

In the past, MCprep used many methods to determine if an error occurred somewhere outside an operator, such as checking for None, using 1 to signify an exception, etc. These methods have the following issues though:

To mitigate these issues in new code, a new error class is needed. This PR introduces the MCprepError class, which aims to give error messages enough information one needs to debug. With MCprepError, the following can be used as general rules:

To bring this out to devs, this PR doesn't perform any actual migration of old code, hence why it's pretty lackluster. The goal is to migrate as we go.

StandingPadAnimations commented 4 months ago

Merging this as done