Fix label tagged text error reporting

This commit is contained in:
Nikita Lisitsa 2022-12-16 16:28:24 +03:00
parent e959c0ec1d
commit 5f7da5ddc5

View file

@ -40,7 +40,7 @@ namespace psemek::ui
if (tag == "bold" || tag == "uline" || tag == "strike") if (tag == "bold" || tag == "uline" || tag == "strike")
{ {
if (attribute) if (attribute)
throw std::runtime_error("tag [" + std::string(tag) + " doesn't support attributes"); throw std::runtime_error("tag [" + tag + "] doesn't support attributes");
} }
else if (tag == "color") else if (tag == "color")
{ {