소스 검색

revert 'firstErr'

Victor Vieux 11 년 전
부모
커밋
b98d51dddb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      engine/streams.go

+ 1 - 1
engine/streams.go

@@ -89,7 +89,7 @@ func (o *Output) Write(p []byte) (n int, err error) {
 			firstErr = err
 			firstErr = err
 		}
 		}
 	}
 	}
-	return len(p), err
+	return len(p), firstErr
 }
 }
 
 
 // Close unregisters all destinations and waits for all background
 // Close unregisters all destinations and waits for all background