Skip to content

Commit

Permalink
add log and continue when step parsing fails for completion #2632 (#2638
Browse files Browse the repository at this point in the history
)

* add log and continue when step parsing fails for completion #2632

Signed-off-by: sriv-e6x <srikanth.venugopalan@e6x.io>

* bump version -> 1.6.10

Signed-off-by: sriv-e6x <srikanth.venugopalan@e6x.io>

---------

Signed-off-by: sriv-e6x <srikanth.venugopalan@e6x.io>
Co-authored-by: sriv-e6x <srikanth.venugopalan@e6x.io>
  • Loading branch information
sriv and sriv-e6x authored Oct 29, 2024
1 parent cd915fb commit 5884aa1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions api/lang/completionStep.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 5884aa1

Please # to comment.