diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2018-11-07 02:01:08 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | 2018-11-15 22:47:50 +0300 |
commit | a08b46ccf0fc0081cecc4843484c4f0eb13f5a9a (patch) | |
tree | d5ff3c2f9680cbdb2df2b4e45557d7ebf2d8b324 /redfish-core/lib/redfish_sessions.hpp | |
parent | 162be7b8b816ff34d08b8d5db461de067356b4d9 (diff) | |
download | bmcweb-a08b46ccf0fc0081cecc4843484c4f0eb13f5a9a.tar.xz |
Simplify Redfish error message property interface
The error message code used a json_pointer object which must
begin with a '/' character and had to be sent as an extra
parameter. This change simplifies the interface by using a
string so there doesn't have to be a '/'. This allowed the
same property argument passed for the message to be used
for the property field path.
Tested: Sent an error with a property and verified that it is
correctly displayed.
Change-Id: I0571e2eee627cedf29d751588a4f1bceee66f084
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'redfish-core/lib/redfish_sessions.hpp')
-rw-r--r-- | redfish-core/lib/redfish_sessions.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/redfish_sessions.hpp b/redfish-core/lib/redfish_sessions.hpp index b0a294878d..68449c0c3b 100644 --- a/redfish-core/lib/redfish_sessions.hpp +++ b/redfish-core/lib/redfish_sessions.hpp @@ -171,12 +171,12 @@ class SessionCollection : public Node { if (username.empty()) { - messages::propertyMissing(res, "UserName", "UserName"); + messages::propertyMissing(res, "UserName"); } if (password.empty()) { - messages::propertyMissing(res, "Password", "Password"); + messages::propertyMissing(res, "Password"); } res.end(); |