Hi everyone,

We got bitten by a bug recently when using PipeWriter.CloseWithError 
<https://golang.org/pkg/io/#PipeWriter.CloseWithError>. We incorrectly 
assumed it would pass-through the error it was passed.

The docs do say that it will always return `nil`, but does anyone know why 
it has an `error` return type at all?

I can't see an interface that it has to match, and couldn't think of any 
other reason.

Cheers
Glen


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/2383b012-7c7e-4f80-a5e3-f8fbc27cafe3n%40googlegroups.com.

Reply via email to