Skip to content

Commit 253ce8b

Browse files
committed
Merge pull request reduxjs#364 from stevemao/warning-comment
Better comment for dummy try...catch block
2 parents eed6c5a + 4e87be0 commit 253ce8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/utils/warning.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ export default function warning(message) {
1111
}
1212
/* eslint-enable no-console */
1313
try {
14-
// This error was thrown as a convenience so that you can use this stack
15-
// to find the callsite that caused this warning to fire.
14+
// This error was thrown as a convenience so that if you enable
15+
// "break on all exceptions" in your console,
16+
// it would pause the execution at this line.
1617
throw new Error(message)
1718
/* eslint-disable no-empty */
1819
} catch (e) {}

0 commit comments

Comments
 (0)