From a5756b7653899a487e5252f73664509ac2eccf97 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 11 May 2017 19:07:40 +0100 Subject: [PATCH] Fix a bad condition https://github.com/facebookincubator/create-react-app/pull/2123#discussion_r116062043 --- packages/react-error-overlay/src/components/overlay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-error-overlay/src/components/overlay.js b/packages/react-error-overlay/src/components/overlay.js index 1a337d2f..3acd5b34 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