func printError(execResult *gauge_messages.ProtoExecutionResult) { if execResult.GetFailed() { console := getCurrentLogger() console.PrintError(execResult.GetErrorMessage() + "\n") console.PrintError(execResult.GetStackTrace() + "\n") } }
func addPostHook(result result, executionResult *gauge_messages.ProtoExecutionResult) { if executionResult.GetFailed() { *(result.getPostHook()) = getProtoHookFailure(executionResult) result.setFailure() } }
func AddPreHook(result Result, executionResult *gauge_messages.ProtoExecutionResult) { if executionResult.GetFailed() { *(result.getPreHook()) = GetProtoHookFailure(executionResult) result.SetFailure() } }