mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 22:34:16 +00:00
Some error message improvements
This commit is contained in:
parent
f24ba1da50
commit
43bad8cc13
@ -1126,7 +1126,8 @@ void tpreferences::pre_show(twindow& window)
|
||||
// pages cannot be found afterwards.
|
||||
initialize_members(window);
|
||||
|
||||
assert(selector.get_item_count() == pager.get_layer_count());
|
||||
VALIDATE(selector.get_item_count() == pager.get_layer_count(),
|
||||
"The preferences pager and its selector listbox do not have the same number of items.");
|
||||
|
||||
const int main_index = index_in_pager_range(index_.first, pager);
|
||||
|
||||
|
@ -986,7 +986,7 @@ void twindow::add_linked_widget(const std::string& id, twidget* widget)
|
||||
{
|
||||
assert(widget);
|
||||
if(!has_linked_size_group(id)) {
|
||||
ERR_GUI << "Unknown linked group '" << id << "'; skipping";
|
||||
ERR_GUI << "Unknown linked group '" << id << "'; skipping\n";
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user