Skip to content

chore: color value_source for deployment values #9922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Sep 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Increment the error context counter
  • Loading branch information
Emyrk committed Sep 29, 2023
commit b5a9164d7485894c9ad327c20f88c02e88070ce3
6 changes: 5 additions & 1 deletion cli/clibase/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ OptionSetDecodeLoop:
if err != nil {
return xerrors.Errorf("decode %d option: %w", i, err)
}
// This counter is used to contextualize errors to show which element of
// the array we failed to decode. It is only used in the error above, as
// if the above works, we can instead use the Option.Name which is more
// descriptive and useful. So increment here for the next decode.
i++

// Try to see if the option already exists in the option set.
// If it does, just update the existing option.
Expand Down Expand Up @@ -163,7 +168,6 @@ OptionSetDecodeLoop:
// We do this because we cannot infer the type of the value.
opt.Value = DiscardValue
*optSet = append(*optSet, opt)
i++
}

t, err = dec.Token()
Expand Down