summaryrefslogtreecommitdiff
path: root/modules/webp
diff options
context:
space:
mode:
authorRobin Hübner <robinhubner@gmail.com>2019-08-11 10:49:53 +0200
committerRobin Hübner <robinhubner@gmail.com>2019-08-12 10:15:54 +0200
commit8aeade74dbed218bf44eec7a5fff76a3526d4e4c (patch)
tree62908d5f47ddb201a3423be1abc427a0767579d7 /modules/webp
parent3418f76a9eab9f496e5b26310bd3bc1125b8119b (diff)
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in rest of 'modules/'
Diffstat (limited to 'modules/webp')
-rw-r--r--modules/webp/image_loader_webp.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/webp/image_loader_webp.cpp b/modules/webp/image_loader_webp.cpp
index 630c15f140..8986e49cf0 100644
--- a/modules/webp/image_loader_webp.cpp
+++ b/modules/webp/image_loader_webp.cpp
@@ -84,8 +84,7 @@ static Ref<Image> _webp_lossy_unpack(const PoolVector<uint8_t> &p_buffer) {
ERR_FAIL_COND_V(r[0] != 'W' || r[1] != 'E' || r[2] != 'B' || r[3] != 'P', Ref<Image>());
WebPBitstreamFeatures features;
if (WebPGetFeatures(&r[4], size, &features) != VP8_STATUS_OK) {
- ERR_EXPLAIN("Error unpacking WEBP image:");
- ERR_FAIL_V(Ref<Image>());
+ ERR_FAIL_V_MSG(Ref<Image>(), "Error unpacking WEBP image.");
}
/*