mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Merge pull request #11902 from keithjgrant/error-detail-formatting
add line wrap formatting to ErrorDetail
This commit is contained in:
commit
a1203e6fec
@ -1,3 +1,4 @@
|
|||||||
|
import 'styled-components/macro';
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
@ -68,7 +69,11 @@ function ErrorDetail({ error }) {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderStack = () => <CardBody>{error.stack}</CardBody>;
|
const renderStack = () => (
|
||||||
|
<CardBody css="white-space: pre; font-family: var(--pf-global--FontFamily--monospace)">
|
||||||
|
{error.stack}
|
||||||
|
</CardBody>
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Expandable
|
<Expandable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user