summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNagaraju Goruganti <ngorugan@in.ibm.com>2017-12-14 10:24:40 -0600
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-01-04 04:34:28 +0000
commitab404fa2f815e9cae546d700d5280600bf990e26 (patch)
tree3d20a10afdaf1757d2ab140ea4fa8ca0c1d2726a
parentf92cf4dbe00f4249f4efeb86886394cab324019a (diff)
downloadphosphor-rest-server-ab404fa2f815e9cae546d700d5280600bf990e26.zip
phosphor-rest-server-ab404fa2f815e9cae546d700d5280600bf990e26.tar.gz
rest_dbus.py:Update abort message for do_post
-When args are in correct format, but are not in accepted range, in this case the current abort message not seems meaningful. -Updated abort message to suite for both cases when the arg type is not correct or arg value is not in accepted range. Fixes openbmc/openbmc#2576 Change-Id: Id35241b05cd193172e2b7b1c905c396d0f9a9b4b Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
-rw-r--r--module/obmc/wsgi/apps/rest_dbus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py
index 0ea921e..3d056fb 100644
--- a/module/obmc/wsgi/apps/rest_dbus.py
+++ b/module/obmc/wsgi/apps/rest_dbus.py
@@ -386,7 +386,7 @@ class MethodHandler(RouteHandler):
self.do_post(path, method, False)
return
except Exception as ex:
- abort(400, "Failed to convert the types")
+ abort(400, "Bad Request/Invalid Args given")
abort(400, str(e))
if e.get_dbus_name() == DBUS_TYPE_ERROR:
OpenPOWER on IntegriCloud