testsuite: return error when can't encode tag (#648)
This commit is contained in:
@@ -43,7 +43,7 @@ func DecodeStdin() error {
|
||||
j := json.NewEncoder(os.Stdout)
|
||||
j.SetIndent("", " ")
|
||||
if err := j.Encode(addTag("", decoded)); err != nil {
|
||||
fmt.Errorf("Error encoding JSON: %s", err)
|
||||
return fmt.Errorf("Error encoding JSON: %s", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user