Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw an error for invalid BitmapText key #6785

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

samme
Copy link
Contributor

@samme samme commented Apr 8, 2024

If you create a BitmapText object with a bad key you see something like this in the console:

[Warning] Invalid BitmapText key: font
[Error] TypeError: undefined is not an object (evaluating 'entry.data')

Since the error is inevitable, I've replaced the console warning so there's now a single error message and trace:

[Error] Invalid BitmapText key: font

@photonstorm photonstorm merged commit 159fe93 into phaserjs:master Jun 6, 2024
@photonstorm
Copy link
Collaborator

👍

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.

None yet

2 participants