Fix objectstore error shadowing
When we are uploading big objects, remote server may close the connection while we are still writing.
This patch allows to fetch the real error instead of io.ErrClosedPipe
When we are uploading big objects, remote server may close the connection while we are still writing.
This patch allows to fetch the real error instead of io.ErrClosedPipe