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

Mention expected resource type in ResourceLoader load error #79737

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jul 21, 2023

This helps troubleshoot issues due to incorrect import types.

Preview

-ERROR: Resource file not found: res://example.png (expected type: Texture2D)
   at: _load (./core/io/resource_loader.cpp:278)

This helps troubleshoot issues due to incorrect import types.
Copy link
Member

@RandomShaper RandomShaper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure p_type_hint will always be non-empty. However, if that ever happens, the worst case is an ugly error message that we can patch in an upcoming PR.

@clayjohn clayjohn modified the milestones: 4.x, 4.2 Jul 26, 2023
@YuriSizov YuriSizov merged commit 0be5875 into godotengine:master Jul 31, 2023
@YuriSizov
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants