diff options
author | Robin Hübner <robinhubner@gmail.com> | 2019-08-11 10:49:53 +0200 |
---|---|---|
committer | Robin Hübner <robinhubner@gmail.com> | 2019-08-12 10:15:54 +0200 |
commit | 8aeade74dbed218bf44eec7a5fff76a3526d4e4c (patch) | |
tree | 62908d5f47ddb201a3423be1abc427a0767579d7 /modules/bmp | |
parent | 3418f76a9eab9f496e5b26310bd3bc1125b8119b (diff) |
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in rest of 'modules/'
Diffstat (limited to 'modules/bmp')
-rw-r--r-- | modules/bmp/image_loader_bmp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/bmp/image_loader_bmp.cpp b/modules/bmp/image_loader_bmp.cpp index 88732dff33..5a32fa1c2c 100644 --- a/modules/bmp/image_loader_bmp.cpp +++ b/modules/bmp/image_loader_bmp.cpp @@ -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 |