mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
11 lines
234 B
TypeScript
11 lines
234 B
TypeScript
function Error({ errStr }: { errStr: string }) {
|
|
return <p>{errStr}</p>;
|
|
}
|
|
|
|
Error.getInitialProps = ({ res, err }: { res: any; err: any }) => {
|
|
console.log(err);
|
|
return { errStr: JSON.stringify(err) };
|
|
};
|
|
|
|
export default Error;
|