mirror of
https://github.com/minetest/minetest.git
synced 2024-12-22 14:12:24 +01:00
Show full texture string in "generateImage(): Failed to generate" errors (#15033)
This commit is contained in:
parent
f23d7459b3
commit
6105804f00
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user