You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in rest of 'modules/'
This commit is contained in:
@@ -241,9 +241,9 @@ Error ImageLoaderBMP::load_image(Ref<Image> p_image, FileAccess *f,
|
||||
case BI_CMYKRLE8:
|
||||
case BI_CMYKRLE4: {
|
||||
// Stop parsing
|
||||
ERR_EXPLAIN("Compressed BMP files are not supported: " + f->get_path());
|
||||
String bmp_path = f->get_path();
|
||||
f->close();
|
||||
ERR_FAIL_V(ERR_UNAVAILABLE);
|
||||
ERR_FAIL_V_MSG(ERR_UNAVAILABLE, "Compressed BMP files are not supported: " + bmp_path + ".");
|
||||
} break;
|
||||
}
|
||||
// Don't rely on sizeof(bmp_file_header) as structure padding
|
||||
|
||||
Reference in New Issue
Block a user