summaryrefslogtreecommitdiffstats
path: root/module/obmc/wsgi/examples/websockets/client_simple.html
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-07-12 15:32:37 +0800
committerLei YU <mine260309@gmail.com>2018-07-12 15:32:37 +0800
commit1eea5c3beb4ef17f7013a1068bb7cc0064d7b1ff (patch)
tree85192dc73da6382ed0dab5ba81add8bdfe5cd7e0 /module/obmc/wsgi/examples/websockets/client_simple.html
parent0cf702c3948487089723d539efc59275b958bf34 (diff)
downloadphosphor-rest-server-1eea5c3beb4ef17f7013a1068bb7cc0064d7b1ff.tar.gz
phosphor-rest-server-1eea5c3beb4ef17f7013a1068bb7cc0064d7b1ff.zip
Fix error message in do_put()
do_put() always reports "Failed to convert to type" when it gets exception during retry. This is not wrong because it may gets the real error from Dbus instead of convert_type(). Fix it by using try-except for both convert_type() and self.do_put() to correctly report the error. Resolves: openbmc/openbmc#3301 Tested: Setting host time when time config does not allow this, and verify the correct error is reported. Change-Id: Ic46cedb7ea20d91d94b45568af9acd55af9caf56 Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'module/obmc/wsgi/examples/websockets/client_simple.html')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud