Skip to content

Commit 4bd0a14

Browse files
committed
Address review comments.
Signed-off-by: Felix Fontein <[email protected]>
1 parent 3dda744 commit 4bd0a14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/sops/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func main() {
242242
var env []string
243243
for _, item := range tree.Branches[0] {
244244
if stores.IsComplexValue(item.Value) {
245-
return cli.NewExitError(fmt.Errorf("cannot use complex value in environment; key is %s", item.Key), codes.ErrorGeneric)
245+
return cli.NewExitError(fmt.Errorf("cannot use complex value in environment; offending key %s", item.Key), codes.ErrorGeneric)
246246
}
247247
if _, ok := item.Key.(sops.Comment); ok {
248248
continue

stores/dotenv/store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (store *Store) EmitPlainFile(in sops.TreeBranches) ([]byte, error) {
139139
buffer := bytes.Buffer{}
140140
for _, item := range in[0] {
141141
if stores.IsComplexValue(item.Value) {
142-
return nil, fmt.Errorf("cannot use complex value in dotenv file; key is %s", item.Key)
142+
return nil, fmt.Errorf("cannot use complex value in dotenv file; offending key %s", item.Key)
143143
}
144144
var line string
145145
if comment, ok := item.Key.(sops.Comment); ok {
@@ -176,7 +176,7 @@ func (store *Store) EmitExample() []byte {
176176
return bytes
177177
}
178178

179-
// DEPRECATED, use stores.IsComplexValue() instead!
179+
// Deprecated: use stores.IsComplexValue() instead!
180180
func IsComplexValue(v interface{}) bool {
181181
return stores.IsComplexValue(v)
182182
}

0 commit comments

Comments
 (0)