Add source id to error alert

This commit is contained in:
Sam Nolan 2022-09-22 17:43:56 +10:00
parent eb86d12d63
commit b3e8253ed7

View File

@ -7,5 +7,5 @@ type Props = {
};
export const SquiggleErrorAlert: React.FC<Props> = ({ error }) => {
return <ErrorAlert heading="Error">{error.toString()}</ErrorAlert>;
return <ErrorAlert heading="Error">{error.toString()} (Source: {error.getSource()})</ErrorAlert>;
};