Skip to content

Commit

Permalink
Print stack in devtool exception warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits committed May 14, 2016
1 parent 92bebca commit 589e71e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/isomorphic/ReactDebugTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function emitEvent(handlerFunctionName, arg1, arg2, arg3, arg4, arg5) {
handlerDoesThrowForEvent[handlerFunctionName],
'exception thrown by devtool while handling %s: %s',
handlerFunctionName,
e.message
e + '\n' + e.stack
);
handlerDoesThrowForEvent[handlerFunctionName] = true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/dom/shared/ReactDOMDebugTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function emitEvent(handlerFunctionName, arg1, arg2, arg3, arg4, arg5) {
handlerDoesThrowForEvent[handlerFunctionName],
'exception thrown by devtool while handling %s: %s',
handlerFunctionName,
e.message
e + '\n' + e.stack
);
handlerDoesThrowForEvent[handlerFunctionName] = true;
}
Expand Down

0 comments on commit 589e71e

Please sign in to comment.