Added specific error for InvalidObjectName (#2157)

This commit is contained in:
Krishnan Parthasarathi
2016-07-09 17:11:08 -07:00
committed by Harshavardhana
parent ae80f8ca35
commit bc8720406d
4 changed files with 12 additions and 6 deletions

View File

@@ -364,7 +364,7 @@ type EOFWriter struct {
n int64
}
// io.Writer implementation desgined to error out with io.EOF after reading `n` bytes.
// io.Writer implementation designed to error out with io.EOF after reading `n` bytes.
func (t *EOFWriter) Write(p []byte) (n int, err error) {
if t.n <= 0 {
return -1, io.EOF