def format_possible_failure_result(result):
    output = {}
    message = result.get('message', None)
    if message:
        output['message'] = message
    traceback = result.get('traceback', None)
    if traceback:
        output['traceback'] = traceback
    return output
Error result as generator by the runner container is of the form
dataset/ETHPy150Open StackStorm/st2contrib/packs/hubot/actions/post_result.py/format_possible_failure_result