Skip to content

Commit

Permalink
error-decoder -> production-error
Browse files Browse the repository at this point in the history
less jargon
  • Loading branch information
eps1lon committed May 30, 2020
1 parent ff90f50 commit 032a996
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';

const pageFilename = 'error-decoder/[code]';
const requireDemo = require.context('docs/src/pages/error-decoder', false, /\.js$/);
const pageFilename = 'production-error/[code]';
const requireDemo = require.context('docs/src/pages/production-error', false, /\.js$/);
const requireRaw = require.context(
'!raw-loader!../../src/pages/error-decoder',
'!raw-loader!../../src/pages/production-error',
false,
/\.(js|md)$/,
);
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ const pages = [
},
{ title: 'Component API', ...findPages[0] },
{
title: 'Error Decoder',
pathname: '/error-decoder',
children: [{ pathname: '/error-decoder/[code]' }],
title: 'Production Error',
pathname: '/production-error',
children: [{ pathname: '/production-error/[code]' }],
},
{
pathname: '/styles',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export default function ErrorDecoder() {
if (data.state === 'rejected') {
return (
<Typography color="error">
Seems like we&apos;re having some issues loading the original message. Try reloading the page. If the error
persists please report this isse on our{' '}
Seems like we&apos;re having some issues loading the original message. Try reloading the
page. If the error persists please report this isse on our{' '}
<Link
href="https://github.com/mui-org/material-ui/issues/new?template=1.bug.md"
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ We recommend using the development build when debugging this error.
It will include additional warnings about potential problems.
If you encounter an exception while using the production build, this page will reassemble the orrigianl text of the error.

{{"demo": "pages/error-decoder/[code]/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
{{"demo": "pages/production-error/[code]/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
2 changes: 1 addition & 1 deletion packages/material-ui-utils/src/formatMuiErrorMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function formatMuiErrorMessage(code) {
// loose mode is safe iff we're concatenating primitives
// see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose
/* eslint-disable prefer-template */
let url = 'https://material-ui.com/error-decoder/' + code + '/?';
let url = 'https://material-ui.com/production-error/' + code + '/?';
for (let i = 1; i < arguments.length; i += 1) {
// rest params over-transpile for this case
// eslint-disable-next-line prefer-rest-params
Expand Down

0 comments on commit 032a996

Please sign in to comment.