GeezerVison is showing github.com — [Flight] Improve error message when it's not a real Error object (#28… · react/react@0fda2b4
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -64e755d7374d753c75dc16ba1a4a09ce7b8689dd |
| 1 | +a7144f297c1c6fe457ca30ce6a211ab59feac11e |
Collapse file
Copy file name to clipboardExpand all lines: compiled/facebook-www/ReactDOMTesting-prod.modern.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -17080,7 +17080,7 @@ Internals.Events = [ |
17080 | 17080 | var devToolsConfig$jscomp$inline_1789 = { |
17081 | 17081 | findFiberByHostInstance: getClosestInstanceFromNode, |
17082 | 17082 | bundleType: 0, |
17083 | | - version: "18.3.0-www-modern-589eead3", |
| 17083 | + version: "18.3.0-www-modern-f74843f1", |
17084 | 17084 | rendererPackageName: "react-dom" |
17085 | 17085 | }; |
17086 | 17086 | var internals$jscomp$inline_2160 = { |
@@ -17111,7 +17111,7 @@ var internals$jscomp$inline_2160 = { |
17111 | 17111 | scheduleRoot: null, |
17112 | 17112 | setRefreshHandler: null, |
17113 | 17113 | getCurrentFiber: null, |
17114 | | - reconcilerVersion: "18.3.0-www-modern-589eead3" |
| 17114 | + reconcilerVersion: "18.3.0-www-modern-f74843f1" |
17115 | 17115 | }; |
17116 | 17116 | if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { |
17117 | 17117 | var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__; |
@@ -17532,4 +17532,4 @@ exports.useFormState = function (action, initialState, permalink) { |
17532 | 17532 | exports.useFormStatus = function () { |
17533 | 17533 | return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); |
17534 | 17534 | }; |
17535 | | -exports.version = "18.3.0-www-modern-589eead3"; |
| 17535 | +exports.version = "18.3.0-www-modern-f74843f1"; |
Collapse file
Copy file name to clipboardExpand all lines: compiled/facebook-www/ReactFlightDOMServer-dev.modern.js +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2335,8 +2335,11 @@ if (__DEV__) { |
2335 | 2335 | message = String(error.message); // eslint-disable-next-line react-internal/safe-string-coercion |
2336 | 2336 |
|
2337 | 2337 | stack = String(error.stack); |
| 2338 | + } else if (typeof error === "object" && error !== null) { |
| 2339 | + message = "Error: " + describeObjectForErrorMessage(error); |
2338 | 2340 | } else { |
2339 | | - message = "Error: " + error; |
| 2341 | + // eslint-disable-next-line react-internal/safe-string-coercion |
| 2342 | + message = "Error: " + String(error); |
2340 | 2343 | } |
2341 | 2344 | } catch (x) { |
2342 | 2345 | message = |
|