-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fake throws when handled exceptions happen within a task. #1079
Comments
I'm having the same issue when running my tests. After all the tests are run, FAKE throws the |
btw my current workaround is to call the missing traceEndTask manually, which is obviously nasty (and will break again when the bug is fixed) |
@matthid Thank you for the workaround! Even though it's "nasty", it definitely helps -- It'll keep people from telling me my scripts are "broken" when their unit tests fail and they see a FAKE exception rather than the actual test failure. |
I am getting this issue also when trying to catch errors from a nuget publish. Please fix! @matthid Could you post your traceEndTask fix so I can see what it looks like and how it would fit into my flow? Thanks |
Usually the best way to get it fixed is to send a Pull-Request ;) The following works for me:
|
Fixed by @0x53A - great! |
Given the following FAKE-Script
Results in:
I don't thought this is expected behaviour, so I wanted to go ahaid and fix it. I noticed that the problem is that
traceEndTask
is not properly in finally blocks. However, as the change is quite invasive, I wanted to ask here first: Should they be in a finally block or is this by-design?The text was updated successfully, but these errors were encountered: