return correct error

pull/1869/head^2
Darien Raymond 2018-12-27 19:59:49 +01:00
parent d670629651
commit c72d853454
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ func WriteMultiBuffer(writer io.Writer, mb MultiBuffer) (MultiBuffer, error) {
_, err := writer.Write(b.Bytes())
b.Release()
if err != nil {
return mb, nil
return mb, err
}
}