path: root/module/obmc/wsgi
diff options
authorNagaraju Goruganti <>2017-12-14 10:24:40 -0600
committerBrad Bishop <>2018-01-04 04:34:28 +0000
commitab404fa2f815e9cae546d700d5280600bf990e26 (patch)
tree3d20a10afdaf1757d2ab140ea4fa8ca0c1d2726a /module/obmc/wsgi
parentf92cf4dbe00f4249f4efeb86886394cab324019a (diff)
downloadphosphor-rest-server-ab404fa2f815e9cae546d700d5280600bf990e26.tar.gz 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 <>
Diffstat (limited to 'module/obmc/wsgi')
1 files changed, 1 insertions, 1 deletions
diff --git a/module/obmc/wsgi/apps/ b/module/obmc/wsgi/apps/
index 0ea921e..3d056fb 100644
--- a/module/obmc/wsgi/apps/
+++ b/module/obmc/wsgi/apps/
@@ -386,7 +386,7 @@ class MethodHandler(RouteHandler):
self.do_post(path, method, False)
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