Skip to content

Add explicit error handling for battle sprites of unexpected sizes#349

Open
PhoenixBound wants to merge 1 commit into
pk-hack:masterfrom
PhoenixBound:battle-sprite-size
Open

Add explicit error handling for battle sprites of unexpected sizes#349
PhoenixBound wants to merge 1 commit into
pk-hack:masterfrom
PhoenixBound:battle-sprite-size

Conversation

@PhoenixBound

Copy link
Copy Markdown
Contributor

An exception with an actual CoilSnake-specific error message mentioning the problematic sprite is now raised.

Fixes #343 (in a way that feels better than the minimal solution mentioned in the issue)

An exception with an actual CoilSnake-specific error message mentioning
the problematic sprite is now raised, instead of Python raising one
incidentally with a bad error mesage.
Tested within coilsnake-cli, not the GUI version of CoilSnake, but all
of that should work about the same way.

Fixes pk-hack#343
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.

Better error message for wrong battle sprite size

1 participant