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:
Subhraman Sarkar 2025-01-13 12:22:54 +05:30
parent a49ccf0b3f
commit b077789251

View File

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