Skip to content

Commit

Permalink
Merge pull request #364 from stevemao/warning-comment
Browse files Browse the repository at this point in the history
Better comment for dummy try...catch block
  • Loading branch information
gaearon committed Apr 21, 2016
2 parents eed6c5a + 4e87be0 commit 253ce8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/warning.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ export default function warning(message) {
}
/* eslint-enable no-console */
try {
// This error was thrown as a convenience so that you can use this stack
// to find the callsite that caused this warning to fire.
// This error was thrown as a convenience so that if you enable
// "break on all exceptions" in your console,
// it would pause the execution at this line.
throw new Error(message)
/* eslint-disable no-empty */
} catch (e) {}
Expand Down

0 comments on commit 253ce8b

Please sign in to comment.