Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

661 B
Raw Blame
import { Tooltip } from 'antd';
import { Typography } from '@signozhq/ui/typography';
import { AxiosError } from 'axios';

import styles from './Error.module.scss';

interface IErrorProps {
	error: AxiosError;
}

function Error(props: IErrorProps): JSX.Element {
	const { error } = props;

	return (
		<div className={styles.root}>
			<Typography.Text className={styles.text}>
				Something went wrong!
			</Typography.Text>
			<Tooltip title={error?.message}>
				<Typography.Text
					className={styles.value}
					title={error?.message}
					truncate={1}
				>
					{error?.message}
				</Typography.Text>
			</Tooltip>
		</div>
	);
}

export default Error;