Demote AI error message to warning and soften text
Changing to warning was done previously for all other messages of this
type but forgotten for this one (commit 7185d6cc80
). Also, there’s not
been any recorded bug caused by this in many years, so there is no need
to keep the second part of the text.
This commit is contained in:
parent
828d82c1ad
commit
aecf8ab7bc
1 changed files with 8 additions and 8 deletions
|
@ -74,7 +74,7 @@ action_result::action_result( side_number side )
|
|||
action_result::~action_result()
|
||||
{
|
||||
if (!return_value_checked_) {
|
||||
ERR_AI_ACTIONS << "Return value of AI ACTION was not checked. This may cause bugs! " << std::endl;
|
||||
DBG_AI_ACTIONS << "Return value of AI ACTION was not checked." << std::endl; //Demotes to DBG "unchecked result" warning
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ void action_result::execute()
|
|||
try {
|
||||
do_execute();
|
||||
} catch (return_to_play_side_exception&) {
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked. This may cause bugs! " << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked." << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
@ -313,7 +313,7 @@ void attack_result::do_execute()
|
|||
try {
|
||||
manager::raise_gamestate_changed();
|
||||
} catch (...) {
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked. This may cause bugs! " << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked." << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
@ -512,7 +512,7 @@ void move_result::do_execute()
|
|||
try {
|
||||
manager::raise_gamestate_changed();
|
||||
} catch (...) {
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked. This may cause bugs! " << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked." << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
@ -664,7 +664,7 @@ void recall_result::do_execute()
|
|||
try {
|
||||
manager::raise_gamestate_changed();
|
||||
} catch (...) {
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked. This may cause bugs! " << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked." << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
@ -813,7 +813,7 @@ void recruit_result::do_execute()
|
|||
try {
|
||||
manager::raise_gamestate_changed();
|
||||
} catch (...) {
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked. This may cause bugs! " << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked." << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
@ -919,7 +919,7 @@ void stopunit_result::do_execute()
|
|||
manager::raise_gamestate_changed();//to be on the safe side
|
||||
}
|
||||
} catch (...) {
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked. This may cause bugs! " << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked." << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
@ -978,7 +978,7 @@ void synced_command_result::do_execute()
|
|||
set_gamestate_changed();
|
||||
manager::raise_gamestate_changed();
|
||||
} catch (...) {
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked. This may cause bugs! " << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
if (!is_ok()) { DBG_AI_ACTIONS << "Return value of AI ACTION was not checked." << std::endl; } //Demotes to DBG "unchecked result" warning
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue