fix: update stream error handling (#213)

This commit is contained in:
stainless-app[bot]
2025-02-05 20:59:02 +00:00
parent 30d43c0507
commit b2a763dcde

View File

@@ -183,6 +183,9 @@ func (s *Stream[T]) Next() bool {
}
}
// decoder.Next() may be false because of an error
s.err = s.decoder.Err()
return false
}