diff --git a/omeroweb/webclient/webclient_gateway.py b/omeroweb/webclient/webclient_gateway.py index 2d365e9ce1..fef0da14a8 100644 --- a/omeroweb/webclient/webclient_gateway.py +++ b/omeroweb/webclient/webclient_gateway.py @@ -1591,7 +1591,7 @@ def updatePermissions(self, group, permissions): try: cb = self.c.submit(command, loops=120) except omero.CmdError as ex: - message = ex.err.message + message = str(ex) finally: if cb: cb.close(True) diff --git a/omeroweb/webgateway/marshal.py b/omeroweb/webgateway/marshal.py index 80008ea3c2..002d57ccb0 100644 --- a/omeroweb/webgateway/marshal.py +++ b/omeroweb/webgateway/marshal.py @@ -445,8 +445,8 @@ def graphResponseMarshal(conn, rsp): rv = {} if isinstance(rsp, omero.cmd.ERR): rsp_params = ", ".join(["%s: %s" % (k, v) for k, v in rsp.parameters.items()]) - rv["error"] = rsp.message - rv["report"] = "%s %s" % (rsp.name, rsp_params) + rv["error"] = str(rsp.name) + rv["report"] = rsp_params else: included = rsp.responses[0].includedObjects deleted = rsp.responses[0].deletedObjects