mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in rest of 'modules/'
This commit is contained in:
parent
3418f76a9e
commit
8aeade74db
29 changed files with 72 additions and 169 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue