diff options
-rw-r--r-- | repo.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -214,7 +214,12 @@ func concatFiles(files []File, stream io.WriteCloser) { logger.Errorf("reading file '%s': %s", f.Path, err) continue } - io.Copy(stream, file) + if n, err := io.Copy(stream, file); err != nil { + logger.Panic(n, err) + } + if err = file.Close(); err != nil { + logger.Panic(err) + } } stream.Close() } |