diff --git a/packages/react-error-overlay/src/components/overlay.js b/packages/react-error-overlay/src/components/overlay.js index 1a337d2f58a..3acd5b34c6f 100644 --- a/packages/react-error-overlay/src/components/overlay.js +++ b/packages/react-error-overlay/src/components/overlay.js @@ -52,7 +52,7 @@ function createOverlay( applyStyles(header, headerStyle); // Make message prettier - let finalMessage = message.match(/^\w*:/) ? name + ': ' + message : message; + let finalMessage = message.match(/^\w*:/) ? message : name + ': ' + message; finalMessage = finalMessage // TODO: maybe remove this prefix from fbjs? // It's just scaring people