change "Trying to recall unit failed!" error to emit useful information

This commit is contained in:
Anonymissimus 2012-02-25 18:01:06 +00:00
parent e6d88f55d9
commit 8457d8b8ef

View file

@ -1879,7 +1879,7 @@ WML_HANDLER_FUNCTION(recall, /*event_info*/, cfg)
}
//TODO I don't know about that error throwing. Sometimes a unit is just not available,
//the designer needs to check with [have_unit] or fetch the recall event.
ERR_NG << "Trying to recall unit failed!\n";
ERR_NG << "A [recall] tag with the following content failed:\n" << cfg.get_config().debug();
}
WML_HANDLER_FUNCTION(object, event_info, cfg)