static PrjHelperResponse CreateStandardResponse(PrjResponse response) { if (response.Succeeded) { return(PrjHelperResponse.Success()); } return(PrjHelperResponse.Error(response.ErrorMessage)); }
static PrjResponse RunPrjCommonEnd( Process proc, string errorOutput) { // If it returns an error code, then assume that // the contents of STDERR are the error message to display // to the user // Otherwise, assume the contents of STDERR are the final output // data. This can include things like serialized YAML if (proc.ExitCode != 0) { return(PrjResponse.Error(errorOutput)); } return(PrjResponse.Success(errorOutput)); }
static PrjHelperResponse CreateStandardResponse(PrjResponse response) { if (response.Succeeded) { return PrjHelperResponse.Success(); } return PrjHelperResponse.Error(response.ErrorMessage); }