From 6105804f0020a77f2e3f6ddcf6d300e76abc01b5 Mon Sep 17 00:00:00 2001 From: 1F616EMO~nya Date: Mon, 2 Sep 2024 22:10:01 +0800 Subject: [PATCH] Show full texture string in "generateImage(): Failed to generate" errors (#15033) --- src/client/imagesource.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/imagesource.cpp b/src/client/imagesource.cpp index adc39f130..bb6668264 100644 --- a/src/client/imagesource.cpp +++ b/src/client/imagesource.cpp @@ -1908,7 +1908,8 @@ video::IImage* ImageSource::generateImage(std::string_view name, video::IImage *tmp = generateImage(name2, source_image_names); if (!tmp) { errorstream << "generateImage(): " - "Failed to generate \"" << name2 << "\"" + "Failed to generate \"" << name2 << "\"\n" + "part of texture \"" << name << "\"" << std::endl; return NULL; } @@ -1923,7 +1924,8 @@ video::IImage* ImageSource::generateImage(std::string_view name, } else if (!generateImagePart(last_part_of_name, baseimg, source_image_names)) { // Generate image according to part of name errorstream << "generateImage(): " - "Failed to generate \"" << last_part_of_name << "\"" + "Failed to generate \"" << last_part_of_name << "\"\n" + "part of texture \"" << name << "\"" << std::endl; }