Skip to content

Commit fb7411b

Browse files
committed
Revise warning
1 parent ec12b8c commit fb7411b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/react-error-overlay/src/overlay.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ function crash(error: Error, unhandledRejection = false) {
161161
consumeError(error, unhandledRejection, CONTEXT_SIZE)
162162
.then(ref => {
163163
if (ref == null) {
164-
console.warn('react-error-overlay ignored:', error);
164+
console.warn(
165+
`react-error-overlay could not deduce if the previous error was from your code. Since we can't display anything useful, we're giving you this warning instead.
166+
This error is most likely a bug with the package you see in the stack trace, however, it may be caused indirectly by something you are calling within the package.
167+
Try searching or opening an issue with the relevant package.`
168+
);
165169
return;
166170
}
167171
errorReferences.push(ref);

0 commit comments

Comments
 (0)