Skip to content

Commit c3a2daf

Browse files
committed
adding evars with bad options will report errors
fixes #338
1 parent 56a3c3a commit c3a2daf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commands/evar/add.go

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ func parseEvars(args []string) map[string]string {
6161
if len(parts) == 2 {
6262

6363
evars[strings.ToUpper(parts[0])] = parts[1]
64+
} else {
65+
fmt.Printf("invalid field option (%s)\n", pair)
6466
}
6567
}
6668
}

0 commit comments

Comments
 (0)