Skip to content

Commit

Permalink
fix: return error as well
Browse files Browse the repository at this point in the history
Co-authored-by: Amit Kumar Das <[email protected]>
  • Loading branch information
SohamRatnaparkhi and amityt committed Jun 29, 2023
1 parent 179bca4 commit 3b8a5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litmus-portal/graphql-server/pkg/chaos-workflow/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func generateFaultWeights(templates []v1alpha1.Template, labels map[string]strin
var meta chaosTypes.ChaosEngine
err := yaml.Unmarshal([]byte(data), &meta)
if err != nil {
return nil, nil, errors.New("failed to unmarshal chaosengine")
return nil, nil, fmt.Errorf("failed to unmarshal chaosengine %v", err)
}

if strings.ToLower(meta.Kind) == "chaosengine" {
Expand Down

0 comments on commit 3b8a5b9

Please sign in to comment.