testsuite: return error when can't encode tag (#648)

This commit is contained in:
Thomas Pelletier
2021-10-29 21:51:50 -04:00
committed by GitHub
parent b4ec220f7e
commit 772d169b52
+1 -1
View File
@@ -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