summaryrefslogtreecommitdiff
path: root/modules/hdr
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/hdr
parent3418f76a9eab9f496e5b26310bd3bc1125b8119b (diff)
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in rest of 'modules/'
Diffstat (limited to 'modules/hdr')
-rw-r--r--modules/hdr/image_loader_hdr.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/hdr/image_loader_hdr.cpp b/modules/hdr/image_loader_hdr.cpp
index f75a4a926a..e610619b54 100644
--- a/modules/hdr/image_loader_hdr.cpp
+++ b/modules/hdr/image_loader_hdr.cpp
@@ -102,10 +102,7 @@ Error ImageLoaderHDR::load_image(Ref<Image> p_image, FileAccess *f, bool p_force
len <<= 8;
len |= f->get_8();
- if (len != width) {
- ERR_EXPLAIN("invalid decoded scanline length, corrupt HDR");
- ERR_FAIL_V(ERR_FILE_CORRUPT);
- }
+ ERR_FAIL_COND_V_MSG(len != width, ERR_FILE_CORRUPT, "Invalid decoded scanline length, corrupt HDR.");
for (int k = 0; k < 4; ++k) {
int i = 0;