From 741c30e236409c20ec01c423dc48871850ab9b66 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Thu, 21 Apr 2022 22:44:31 -0500 Subject: [PATCH] Argument IDs must all be present or all be omitted --- scwx-qt/source/scwx/qt/util/json.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scwx-qt/source/scwx/qt/util/json.cpp b/scwx-qt/source/scwx/qt/util/json.cpp index e649a338..2931f157 100644 --- a/scwx-qt/source/scwx/qt/util/json.cpp +++ b/scwx-qt/source/scwx/qt/util/json.cpp @@ -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