summaryrefslogtreecommitdiffstats
path: root/core/io/image.h
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2024-01-26 20:33:22 +0100
committerYuri Sizov <yuris@humnom.net>2024-01-26 20:33:22 +0100
commit815038962f0d917bae7d6f2dae17da3a0aebf7c8 (patch)
tree15d3ab2b4cbf2de53f5149e0db9ba9074c729814 /core/io/image.h
parent17e7f85c06366b427e5068c5b3e2940e27ff5f1d (diff)
downloadredot-engine-815038962f0d917bae7d6f2dae17da3a0aebf7c8.tar.gz
Improve error reporting in the asset library and in related types
This also makes errors related to asset image loading verbose-only, because, frankly, users can't do much about those errors. Spamming them with error messages about some assets on the frontend being broken is pointless.
Diffstat (limited to 'core/io/image.h')
-rw-r--r--core/io/image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/image.h b/core/io/image.h
index be308b0ac1..e35b359a79 100644
--- a/core/io/image.h
+++ b/core/io/image.h
@@ -431,7 +431,7 @@ public:
void set_as_black();
void copy_internals_from(const Ref<Image> &p_image) {
- ERR_FAIL_COND_MSG(p_image.is_null(), "It's not a reference to a valid Image object.");
+ ERR_FAIL_COND_MSG(p_image.is_null(), "Cannot copy image internals: invalid Image object.");
format = p_image->format;
width = p_image->width;
height = p_image->height;