Show full texture string in "generateImage(): Failed to generate" errors (#15033)

This commit is contained in:
1F616EMO~nya 2024-09-02 22:10:01 +08:00 committed by GitHub
parent f23d7459b3
commit 6105804f00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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;
}