Commit ec02c59e authored by Jérome Perrin's avatar Jérome Perrin

if there is a message in the ProtocolError, display it


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40466 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d19b1521
...@@ -77,8 +77,11 @@ class _ProtocolErrorCatcher(object): ...@@ -77,8 +77,11 @@ class _ProtocolErrorCatcher(object):
try: try:
return self.__callable(*args, **kw) return self.__callable(*args, **kw)
except ProtocolError, e: except ProtocolError, e:
raise ConversionError("Network error while contacting OOo conversion" message = "%s %s" % (e.errcode, e.errmsg)
" server: server might be unreachable") if e.errcode == -1:
message = "Connection refused"
raise ConversionError("Protocol error while contacting OOo conversion"
" server: %s" % (message))
class OOoServerProxy(ServerProxy): class OOoServerProxy(ServerProxy):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment