Skip to content

Commit 4d422c0

Browse files
committed
updated readme to show that custom error handler can access the original exception (issue jakesgordon#62)
1 parent d403758 commit 4d422c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ define a custom `error` handler:
334334

335335
var fsm = StateMachine.create({
336336
initial: 'green',
337-
error: function(eventName, from, to, args, errorCode, errorMessage) {
337+
error: function(eventName, from, to, args, errorCode, errorMessage, originalException) {
338338
return 'event ' + eventName + ' was naughty :- ' + errorMessage;
339339
},
340340
events: [

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Version 2.4.0 (ETA - December 2016)
2424
* ensure WILDCARD events are included in list of available transitions() (issue #93)
2525
* fix FSM getting stuck into "*" state when using double wildcard (issue #64)
2626
* function (fsm.states) returning list of all available states in the machine would help automated testing (issue #54)
27+
* state machine hides callback exceptions (issue #62)
2728

2829
Version 2.3.5 (January 20 2014)
2930
-------------------------------

0 commit comments

Comments
 (0)