Skip to content

Commit

Permalink
Merge pull request #5821 from oasisprotocol/kostko/fix/cfg-prune-errmsg
Browse files Browse the repository at this point in the history
go/runtime/config: Fix incorrect error message for invalid prune config
  • Loading branch information
kostko committed Aug 20, 2024
2 parents 137630d + 4e6aec4 commit 104984f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/5821.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go/runtime/config: Fix incorrect error message for invalid prune config
2 changes: 1 addition & 1 deletion go/runtime/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (c *Config) Validate() error {
return fmt.Errorf("prune.interval must be >= 1 second")
}
default:
return fmt.Errorf("unknown runtime history pruner strategy: %s", c.Environment)
return fmt.Errorf("unknown runtime history pruner strategy: %s", c.Prune.Strategy)
}

if c.LoadBalancer.NumInstances > 128 {
Expand Down

0 comments on commit 104984f

Please sign in to comment.