From 5884aa140381e4dc85b63eb2657f3d5d532921ad Mon Sep 17 00:00:00 2001 From: Srikanth Date: Tue, 29 Oct 2024 18:58:38 +0530 Subject: [PATCH] add log and continue when step parsing fails for completion #2632 (#2638) * add log and continue when step parsing fails for completion #2632 Signed-off-by: sriv-e6x * bump version -> 1.6.10 Signed-off-by: sriv-e6x --------- Signed-off-by: sriv-e6x Co-authored-by: sriv-e6x --- api/lang/completionStep.go | 8 ++++++-- version/version.go | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/api/lang/completionStep.go b/api/lang/completionStep.go index 40f968258..1e93482e7 100644 --- a/api/lang/completionStep.go +++ b/api/lang/completionStep.go @@ -65,8 +65,12 @@ func allImplementedStepValues() ([]gauge.StepValue, error) { return stepValues, fmt.Errorf("failed to get steps from runner. %s", err.Error()) } for _, stepText := range res.GetSteps() { - stepValue, _ := parser.ExtractStepValueAndParams(stepText, false) - stepValues = append(stepValues, *stepValue) + stepValue, err := parser.ExtractStepValueAndParams(stepText, false) + if err != nil { + logError(nil, "Unable to extract StepValueAndParams for step '%s', error : %s", stepText, err.Error()) + } else { + stepValues = append(stepValues, *stepValue) + } } return stepValues, nil } diff --git a/version/version.go b/version/version.go index 359b83d7f..98385c9b8 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, 9} +var CurrentGaugeVersion = &Version{1, 6, 10} // BuildMetadata represents build information of current release (e.g, nightly build information) var BuildMetadata = ""