Best I can do to simplify the check(fmt::format)crap is to make a little macro to do the format part.
This commit is contained in:
parent
6710469ee1
commit
f0b04107ab
28 changed files with 108 additions and 108 deletions
|
|
@ -59,7 +59,7 @@ namespace ritual {
|
|||
|
||||
void Engine::set_state(CraftingState& ritual, std::string name, bool setting) {
|
||||
dbc::check($profile.contains(name),
|
||||
fmt::format("ritual action named {} is not in profile, look in {} config",
|
||||
$F("ritual action named {} is not in profile, look in {} config",
|
||||
name, $config.$src_path));
|
||||
|
||||
ritual.start.set($profile.at(name), setting);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue