18 lines
293 B
JavaScript
18 lines
293 B
JavaScript
import React from 'react';
|
|
import ErrorPage from './ErrorPage';
|
|
|
|
export default {
|
|
|
|
path: '/error',
|
|
|
|
action({ error }) {
|
|
return {
|
|
title: error.name,
|
|
description: error.message,
|
|
component: <ErrorPage error={error} />,
|
|
status: error.status || 500,
|
|
};
|
|
},
|
|
|
|
};
|