diff options
Diffstat (limited to 'redfish-core/src/error_messages.cpp')
-rw-r--r-- | redfish-core/src/error_messages.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/redfish-core/src/error_messages.cpp b/redfish-core/src/error_messages.cpp index 7bbd877409..3c628b6579 100644 --- a/redfish-core/src/error_messages.cpp +++ b/redfish-core/src/error_messages.cpp @@ -860,17 +860,17 @@ void propertyValueExternalConflict(crow::Response& res, std::string_view arg1, * See header file for more information * @endinternal */ -nlohmann::json propertyValueIncorrect(const nlohmann::json& arg1, - std::string_view arg2) +nlohmann::json propertyValueIncorrect(std::string_view arg1, + const nlohmann::json& arg2) { - std::string arg1Str = arg1.dump(2, ' ', true, + std::string arg2Str = arg2.dump(2, ' ', true, nlohmann::json::error_handler_t::replace); return getLog(redfish::registries::base::Index::propertyValueIncorrect, - std::to_array<std::string_view>({arg1Str, arg2})); + std::to_array<std::string_view>({arg1, arg2Str})); } -void propertyValueIncorrect(crow::Response& res, const nlohmann::json& arg1, - std::string_view arg2) +void propertyValueIncorrect(crow::Response& res, std::string_view arg1, + const nlohmann::json& arg2) { res.result(boost::beast::http::status::bad_request); addMessageToErrorJson(res.jsonValue, propertyValueIncorrect(arg1, arg2)); |