File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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!
180180func IsComplexValue (v interface {}) bool {
181181 return stores .IsComplexValue (v )
182182}
You can’t perform that action at this time.
0 commit comments