def METHOD_NAME(error_detail):
    nested_error_details = error_detail.pop('details') if 'details' in error_detail else []
    err_messages = [f'Inner Errors: \n{json.dumps(error_detail)}']
    for detail in nested_error_details:
        err_messages.append(METHOD_NAME(detail))
    return '\n\n'.join(err_messages)