index.js (559B)
1 /** 2 * React Starter Kit (https://www.reactstarterkit.com/) 3 * 4 * Copyright © 2014-present Kriasoft, LLC. All rights reserved. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.txt file in the root directory of this source tree. 8 */ 9 10 import React from 'react'; 11 import ErrorPage from './ErrorPage'; 12 13 export default { 14 15 path: '/error', 16 17 action({ error }) { 18 return { 19 title: error.name, 20 description: error.message, 21 component: <ErrorPage error={error} />, 22 status: error.status || 500, 23 }; 24 }, 25 26 };