def error_reason(self, workername, response):
        for r in response:
            try:
                return r[workername].get('error', 'Unknown reason')
            except KeyError:
                pass
        logger.error("Failed to extract error reason from '%s'", response)
        return 'Unknown reason'
Encode request into client_message
dataset/ETHPy150Open mher/flower/flower/api/control.py/ControlHandler.error_reason--crossover with--dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/protocol/codec/client_get_distributed_objects_codec.py/encode_request