mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-14 13:12:07 +00:00
canvas: improve error message in image_shape
the message now makes it obvious the 'name' key is faulty and covers the case where it is empty. Originally, it only notified that the formula was invalid.
This commit is contained in:
parent
a49ccf0b3f
commit
b077789251
|
@ -277,7 +277,7 @@ void image_shape::draw(wfl::map_formula_callable& variables)
|
|||
const std::string& name = image_name_(variables);
|
||||
|
||||
if(name.empty()) {
|
||||
DBG_GUI_D << "Image: formula returned no value, will not be drawn.";
|
||||
DBG_GUI_D << "Image: name is empty or contains invalid formula, will not be drawn.";;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user