func printError(execResult *gauge_messages.ProtoExecutionResult) { if execResult.GetFailed() { console := getCurrentLogger() console.PrintError(execResult.GetErrorMessage() + "\n") console.PrintError(execResult.GetStackTrace() + "\n") } }
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, logger *logger.GaugeLogger) { logger.Error("Error Message: %s", executionResult.GetErrorMessage()) stacktrace := executionResult.GetStackTrace() stacktrace = strings.Replace(stacktrace, "\n", "\n\t", -1) logger.Error("Stacktrace: %s", stacktrace) }
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, reporter reporter.Reporter) { reporter.Error("Error Message: %s", executionResult.GetErrorMessage()) reporter.Error("Stacktrace: \n%s", executionResult.GetStackTrace()) }
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, writer execLogger.ExecutionLogger) { writer.PrintError(executionResult.GetErrorMessage()) writer.PrintError(executionResult.GetStackTrace()) }
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, logger logger.GaugeLogger) { logger.Error("Error Message: %s", executionResult.GetErrorMessage()) stacktrace := executionResult.GetStackTrace() logger.Error("Stacktrace: %s", stacktrace) }