import React from 'react';
import PropTypes from 'prop-types';
import { Alert } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
const Errors = ({ ...props }) => {
const { failedSteps, executionPlan } = props;
if (!executionPlan)
return (
{step.action_class}{__('Input')}:
{step.input}{__('Output')}:
{step.output}{step.error && (
{step.error.exception_class}: {step.error.message}{__('Backtrace')}:
{step.error.backtrace.join('\n')}