From 2e0ff9c3c13d8002a870a0f274bca489fff0e620 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 12 Sep 2024 15:53:38 -0400 Subject: [PATCH] chore(x/swingset): Include "default" in vat-transcript-retention invalid value error message Ref #10032 --- golang/cosmos/x/swingset/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/golang/cosmos/x/swingset/config.go b/golang/cosmos/x/swingset/config.go index d6faf87d3c6..4f2e25313c5 100644 --- a/golang/cosmos/x/swingset/config.go +++ b/golang/cosmos/x/swingset/config.go @@ -175,9 +175,10 @@ func SwingsetConfigFromViper(resolvedConfig servertypes.AppOptions) (*SwingsetCo } } if util.IndexOf(transcriptRetentionValues, ssConfig.VatTranscriptRetention) == -1 { + valuesCopy := append([]string{}, transcriptRetentionValues...) err := fmt.Errorf( "value for vat-transcript-retention must be in %q", - transcriptRetentionValues, + append(valuesCopy, "default"), ) return nil, err }