Skip to content

Get the exception that caused the evaluation to fail #161

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

Closed
forki opened this issue Jun 17, 2014 · 4 comments
Closed

Get the exception that caused the evaluation to fail #161

forki opened this issue Jun 17, 2014 · 4 comments

Comments

@forki
Copy link
Member

forki commented Jun 17, 2014

Consider the evalExpression function as describe at http://fsharp.github.io/FSharp.Compiler.Service/interactive.html

no try to evaluate a failwith expression:

evalExpression "failwith \"inception\" "

this causes the session to fail (which is expected). But how can I get the raised exception?

@forki
Copy link
Member Author

forki commented Jun 17, 2014

This seems to be the last issue to make FAKE use the FCS.

@forki
Copy link
Member Author

forki commented Jun 18, 2014

Just to clarify: I don't want to analyze the script for possible exceptions. I want to run it and catch the raised exception.

@7sharp9
Copy link
Member

7sharp9 commented Jun 18, 2014

I would love to help but I'm on my holidays!

On 18 Jun 2014, at 08:55, Steffen Forkmann notifications@github.com wrote:

Just to clarify: I don't want to analyze the script for possible exceptions. I want to run it and catch the raised exception.


Reply to this email directly or view it on GitHub.

@forki
Copy link
Member Author

forki commented Jun 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants