Tks!
so the code :
' check failure and mark step as failed if so
If Err.Number <> 0 Then
Builder.LogMessage Err.Description
Step.BuildStatus = vbldStepStatFailed
End If
could stay only once at the end of the subprocedure,it is not necessary to write it after any operation that could fail.
|