Skip to content

Commit 032a996

Browse files
committed
error-decoder -> production-error
less jargon
1 parent ff90f50 commit 032a996

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/pages/error-decoder/[code].js docs/pages/production-error/[code].js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import React from 'react';
22
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
33
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
44

5-
const pageFilename = 'error-decoder/[code]';
6-
const requireDemo = require.context('docs/src/pages/error-decoder', false, /\.js$/);
5+
const pageFilename = 'production-error/[code]';
6+
const requireDemo = require.context('docs/src/pages/production-error', false, /\.js$/);
77
const requireRaw = require.context(
8-
'!raw-loader!../../src/pages/error-decoder',
8+
'!raw-loader!../../src/pages/production-error',
99
false,
1010
/\.(js|md)$/,
1111
);

docs/src/pages.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ const pages = [
130130
},
131131
{ title: 'Component API', ...findPages[0] },
132132
{
133-
title: 'Error Decoder',
134-
pathname: '/error-decoder',
135-
children: [{ pathname: '/error-decoder/[code]' }],
133+
title: 'Production Error',
134+
pathname: '/production-error',
135+
children: [{ pathname: '/production-error/[code]' }],
136136
},
137137
{
138138
pathname: '/styles',

docs/src/pages/error-decoder/ErrorDecoder.js docs/src/pages/production-error/ErrorDecoder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export default function ErrorDecoder() {
9595
if (data.state === 'rejected') {
9696
return (
9797
<Typography color="error">
98-
Seems like we&apos;re having some issues loading the original message. Try reloading the page. If the error
99-
persists please report this isse on our{' '}
98+
Seems like we&apos;re having some issues loading the original message. Try reloading the
99+
page. If the error persists please report this isse on our{' '}
100100
<Link
101101
href="https://github.com/mui-org/material-ui/issues/new?template=1.bug.md"
102102
target="_blank"

docs/src/pages/error-decoder/[code].md docs/src/pages/production-error/[code].md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ We recommend using the development build when debugging this error.
66
It will include additional warnings about potential problems.
77
If you encounter an exception while using the production build, this page will reassemble the orrigianl text of the error.
88

9-
{{"demo": "pages/error-decoder/[code]/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}
9+
{{"demo": "pages/production-error/[code]/ErrorDecoder.js", "hideToolbar": true, "bg": "inline"}}

packages/material-ui-utils/src/formatMuiErrorMessage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function formatMuiErrorMessage(code) {
88
// loose mode is safe iff we're concatenating primitives
99
// see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose
1010
/* eslint-disable prefer-template */
11-
let url = 'https://material-ui.com/error-decoder/' + code + '/?';
11+
let url = 'https://material-ui.com/production-error/' + code + '/?';
1212
for (let i = 1; i < arguments.length; i += 1) {
1313
// rest params over-transpile for this case
1414
// eslint-disable-next-line prefer-rest-params

0 commit comments

Comments
 (0)