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 31, 2020
1 parent 9763a5f commit 6cda25b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 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
2 changes: 1 addition & 1 deletion test/regressions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ const blacklist = [
'docs-discover-more-languages', // No public components
'docs-discover-more-showcase', // No public components
'docs-discover-more-team', // No public components
'docs-error-decoder/ErrorDecoder.png', // requires next router context
'docs-getting-started-templates', // No public components
'docs-getting-started-templates-album/Album.png', // Flaky image loading
'docs-getting-started-templates-blog', // Flaky random images
Expand All @@ -119,6 +118,7 @@ const blacklist = [
'docs-getting-started-usage/Usage.png', // No public components
/^docs-guides-.*/, // No public components
'docs-landing', // Mostly images, redundant
'docs-production-error/ErrorDecoder.png', // requires next router context
'docs-styles-advanced', // Redudant
'docs-system-borders', // Unit tests are enough
'docs-system-display', // Unit tests are enough
Expand Down

0 comments on commit 6cda25b

Please sign in to comment.