-
Notifications
You must be signed in to change notification settings - Fork 586
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
Seperate runInternal & handle error #2140
Conversation
ff90059
to
052414e
Compare
Update returning of context objects to allow for stepping into process
052414e
to
a6384b2
Compare
@@ -652,6 +652,11 @@ module Target = | |||
|> Observable.subscribe (fun _ -> Environment.Exit 1) | |||
Process.killAllCreatedProcesses() |> ignore | |||
cts.Cancel() | |||
|
|||
/// Optional `TargetContext` | |||
type OptionalTargetContext = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be internal
/private
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it is returned, it can't be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While strictly speaking this is a breaking change I'm fine with merging this (but I have to take another close look at the signatures). Only thing is the docs which should be updated.
help/markdown/core-targets.md
Outdated
|
||
// *** Start Build *** | ||
Target.runOrDefaultAndGetContext "Deploy" //Could also use: Target.runAndGetOptionalContext "Deploy" | ||
|> Target.raiseIfErrorOption |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raiseIfError
as there is no raiseIfErrorOption
?
thanks! |
Description
Update to the way targets are triggered (non-breaking) to allow for context to be returned and then raiseError called with the context.
Currently, if the context has errors, you do not get the context back.
Another benefit is to allow for stepping into process (more on this later 😉)