From 394bd6c4005398cd256222683bc37ff769822f5b Mon Sep 17 00:00:00 2001 From: Piotr Nestorow Date: Wed, 21 Feb 2024 14:03:21 +0100 Subject: [PATCH] Concept hooks return status response --- execution/scenarioExecutor.go | 10 ++++++++-- version/version.go | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/execution/scenarioExecutor.go b/execution/scenarioExecutor.go index 9ae5d72d92..d77f972bd8 100644 --- a/execution/scenarioExecutor.go +++ b/execution/scenarioExecutor.go @@ -146,7 +146,10 @@ func (e *scenarioExecutor) notifyBeforeConcept(conceptResult *result.ScenarioRes ConceptExecutionStartingRequest: &gauge_messages.ConceptExecutionStartingRequest{CurrentExecutionInfo: e.currentExecutionInfo, Stream: int32(e.stream)}} e.pluginHandler.NotifyPlugins(message) if (e.runner.Info().ConceptMessages) { - _ = e.runner.ExecuteAndGetStatus(message) + res := e.runner.ExecuteAndGetStatus(message) + if (res != nil) { + logger.Info(true, res.ErrorMessage) + } } } @@ -155,7 +158,10 @@ func (e *scenarioExecutor) notifyAfterConcept(conceptResult *result.ScenarioResu ConceptExecutionEndingRequest: &gauge_messages.ConceptExecutionEndingRequest{CurrentExecutionInfo: e.currentExecutionInfo, Stream: int32(e.stream)}} e.pluginHandler.NotifyPlugins(message) if (e.runner.Info().ConceptMessages) { - _ = e.runner.ExecuteAndGetStatus(message) + res := e.runner.ExecuteAndGetStatus(message) + if (res != nil) { + logger.Info(true, res.ErrorMessage) + } } } diff --git a/version/version.go b/version/version.go index 35c331023d..3f00343d89 100644 --- a/version/version.go +++ b/version/version.go @@ -14,7 +14,7 @@ import ( ) // CurrentGaugeVersion represents the current version of Gauge -var CurrentGaugeVersion = &Version{1, 6, 2} +var CurrentGaugeVersion = &Version{1, 6, 3} // BuildMetadata represents build information of current release (e.g, nightly build information) var BuildMetadata = ""