WithErrorExitCode(Func<int, bool>) Method
Provides a function that determines if the exit code from the process was an error.
Namespace
Statiq.Core
Containing Type
StartProcess

Syntax

public StartProcess WithErrorExitCode(Func<int, bool> isErrorExitCode)

Remarks

By default any non-zero exit code is considered an error. Some processes return non-zero exit codes to indicate success and this lets you treat those as successful.

Parameters

Name Type Description
isErrorExitCode Func<int, bool> A function that determines if the exit code is an error by returning true.

Return Value

Type Description
StartProcess The current module instance.