Skip to content

Commit

Permalink
feat: add proper error title if config unmarshalling fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuDa committed May 4, 2023
1 parent 45cb69a commit 2be8019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/steadybit-extension-kong/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-kong
description: Steadybit Kong extension Helm chart for Kubernetes.
version: 1.6.6
version: 1.6.7
appVersion: latest
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
5 changes: 2 additions & 3 deletions kong/request_termination_attack.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@ func (f RequestTerminationAction) Prepare(_ context.Context, state *RequestTermi
}

var config RequestTerminationConfig
err = extconversion.Convert(request.Config, &config)
if err != nil {
return nil, err
if err := extconversion.Convert(request.Config, &config); err != nil {
return nil, extension_kit.ToError("Failed to unmarshal the config.", err)
}

var consumer *kong.Consumer = nil
Expand Down

0 comments on commit 2be8019

Please sign in to comment.