Skip to content

Commit 3c73d73

Browse files
committed
Added a fix for exception forwarding in the StateMachine
1 parent 83ea4ba commit 3c73d73

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## [0.7.1-beta] - Aug 21, 2024
4+
- Amended the exception forwarding of StateMachine to throw the original exception rather than wrapping it. This improves debugging errors in states.
5+
36
## [0.7.0-beta] - Aug 19, 2024
47
- Added support for copy & paste
58

Runtime/StateGraph/StateMachine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private async void TriggerAsyncTransition(StateNodeModel nextNode, int frameDela
206206
}
207207
catch (Exception ex)
208208
{
209-
throw new Exception(ex.Message);
209+
throw ex;
210210
}
211211
}
212212

0 commit comments

Comments
 (0)