diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-23 20:09:40 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-23 20:09:40 (GMT) |
commit | 6df513e9c221fdc16abc53075e3c6bc84804f014 (patch) | |
tree | 542cd59536f66d288936edd46b20a15c1e53d569 /rhimport | |
parent | 0122d9b0c8f94b067d8d5210deb95b33963f037e (diff) |
print number of bytes in case of premature attachment close
Diffstat (limited to 'rhimport')
-rw-r--r-- | rhimport/fetcher.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rhimport/fetcher.go b/rhimport/fetcher.go index 801b920..536dbe1 100644 --- a/rhimport/fetcher.go +++ b/rhimport/fetcher.go @@ -598,7 +598,7 @@ func writeAttachmentFile(ctx *Context, res *Result, sizeTotal uint64, conv Fetch return nil case chunk, ok := <-ctx.AttachmentChan: if !ok { - rhl.Printf("receiving attachment '%s' failed: channel has been closed prematurely)", ctx.SourceFile) + rhl.Printf("receiving attachment '%s' failed: channel has been closed prematurely, after %d Bytes", ctx.SourceFile, written) res.ResponseCode = http.StatusBadRequest res.ErrorString = fmt.Sprintf("file upload stopped prematurely (after %d Bytes)", written) return nil |