diff --git a/src/web/components/error/errorpanel.jsx b/src/web/components/error/errorpanel.jsx index 5c813621c4..eb155a8365 100644 --- a/src/web/components/error/errorpanel.jsx +++ b/src/web/components/error/errorpanel.jsx @@ -41,6 +41,10 @@ const ErrorDetails = styled.div` overflow-x: auto; `; +const StyledPre = styled.pre` + word-break: break-word; +`; + const ErrorPanel = ({error, message, info}) => { const [showDetails, setShowDetails] = useState(false); @@ -71,11 +75,13 @@ const ErrorPanel = ({error, message, info}) => { {error.name}: {error.message} {isDefined(info) && ( -
++ )} -{info.componentStack} -
{error.stack}+