We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a19b5 commit b5f68bbCopy full SHA for b5f68bb
packages/cubejs-playground/src/components/Error/FatalError.tsx
@@ -12,6 +12,8 @@ export const Code = styled.pre`
12
font-size: 13px;
13
white-space: pre-wrap;
14
margin: 0;
15
+ max-width: 100%;
16
+ overflow: auto;
17
`;
18
19
type CubeError = Error & {
@@ -27,11 +29,11 @@ type FatalErrorProps = {
27
29
28
30
export function FatalError({ error, stack }: FatalErrorProps) {
31
const [visible, setVisible] = useState(false);
-
32
+
33
const ansiHtmlError = useMemo(() => {
34
return generateAnsiHTML(error.toString()).replace(/(Error:\s)/g, '');
35
}, [error])
36
37
const errorStack = stack || (typeof error !== 'string' ? error.response?.stack : null);
38
39
return (
0 commit comments