Skip to content

Commit

Permalink
added white-space to pre tag in server error msg detail (debezium#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
indraraj authored Feb 10, 2021
1 parent f79608d commit 5cba18e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ui/packages/ui/src/app/components/ApplicationErrorPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
.application-error-page > div.application-error-page_details > div {
border: 1px solid #ccc;
}
.application-error-msg_error_msg{
white-space: pre-wrap;
}

2 changes: 1 addition & 1 deletion ui/packages/ui/src/app/components/ApplicationErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const ApplicationErrorPage: React.FC<IApplicationErrorPageProps> = (
const msg = props.errorInfo ? props.errorInfo.componentStack
: props.error ? JSON.stringify(props.error) : t('noDetailsAvailable');
return (
<Text component={"pre"} className={"pf-u-text-align-left"}>
<Text component={"pre"} className={"pf-u-text-align-left application-error-msg_error_msg"}>
{msg}
</Text>
);
Expand Down

0 comments on commit 5cba18e

Please sign in to comment.