mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 01:30:05 +00:00
Argument IDs must all be present or all be omitted
This commit is contained in:
parent
a96e017917
commit
741c30e236
1 changed files with 6 additions and 5 deletions
|
|
@ -51,7 +51,7 @@ bool FromJsonInt64(const boost::json::object& json,
|
|||
|
||||
if (minValue.has_value() && value < *minValue)
|
||||
{
|
||||
logger_->warn("{} less than minimum ({} < {}), setting to: {2}",
|
||||
logger_->warn("{0} less than minimum ({1} < {2}), setting to: {2}",
|
||||
key,
|
||||
value,
|
||||
*minValue);
|
||||
|
|
@ -59,10 +59,11 @@ bool FromJsonInt64(const boost::json::object& json,
|
|||
}
|
||||
else if (maxValue.has_value() && value > *maxValue)
|
||||
{
|
||||
logger_->warn("{} greater than maximum ({} > {}), setting to: {2}",
|
||||
key,
|
||||
value,
|
||||
*maxValue);
|
||||
logger_->warn(
|
||||
"{0} greater than maximum ({1} > {2}), setting to: {2}",
|
||||
key,
|
||||
value,
|
||||
*maxValue);
|
||||
value = *maxValue;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue