diff options
Diffstat (limited to 'redfish-core/lib/managers.hpp')
-rw-r--r-- | redfish-core/lib/managers.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/redfish-core/lib/managers.hpp b/redfish-core/lib/managers.hpp index a5e8c23456..acaa40ac2c 100644 --- a/redfish-core/lib/managers.hpp +++ b/redfish-core/lib/managers.hpp @@ -682,8 +682,7 @@ inline bool if (config.empty()) { BMCWEB_LOG_ERROR << "Empty Zones"; - messages::propertyValueFormatError(response->res, - nlohmann::json::array(), "Zones"); + messages::propertyValueFormatError(response->res, "[]", "Zones"); return false; } for (auto& odata : config) @@ -1601,8 +1600,8 @@ struct SetPIDValues : std::enable_shared_from_this<SetPIDValues> if (createNewObject && it.value() == nullptr) { // can't delete a non-existent object - messages::propertyValueNotInList(response->res, it.value(), - name); + messages::propertyValueNotInList(response->res, + it.value().dump(), name); continue; } |