Skip to content

Commit

Permalink
GUI2: Improve an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 18, 2016
1 parent fc12c8b commit d8268c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/gui/auxiliary/window_builder.cpp
Expand Up @@ -399,8 +399,8 @@ twindow_builder::tresolution::tresolution(const config& cfg)
, click_dismiss(cfg["click_dismiss"].to_bool())
, definition(cfg["definition"])
, linked_groups()
, tooltip(cfg.child_or_empty("tooltip"))
, helptip(cfg.child_or_empty("helptip"))
, tooltip(cfg.child_or_empty("tooltip"), "tooltip")
, helptip(cfg.child_or_empty("helptip"), "helptip")
, grid(0)
{
if(!cfg["functions"].empty()) {
Expand Down Expand Up @@ -452,10 +452,10 @@ twindow_builder::tresolution::tresolution(const config& cfg)
}
}

twindow_builder::tresolution::ttip::ttip(const config& cfg) : id(cfg["id"])
twindow_builder::tresolution::ttip::ttip(const config& cfg, const std::string& tagname) : id(cfg["id"])
{
VALIDATE(!id.empty(),
missing_mandatory_wml_key("[window][resolution][tip]", "id"));
missing_mandatory_wml_key("[window][resolution][" + tagname + "]", "id"));
}

/*WIKI
Expand Down
2 changes: 1 addition & 1 deletion src/gui/auxiliary/window_builder.hpp
Expand Up @@ -203,7 +203,7 @@ class twindow_builder
/** Helper struct to store information about the tips. */
struct ttip
{
ttip(const config& cfg);
ttip(const config& cfg, const std::string& tagname);

std::string id;
};
Expand Down

0 comments on commit d8268c0

Please sign in to comment.