From 2f8d1fc67bec9d9dcb740b4a310a61e2dee2813a Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 22 Mar 2015 12:10:12 -0600 Subject: [PATCH] move smudge message before the download actually starts --- pointer/smudge.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pointer/smudge.go b/pointer/smudge.go index 79531b8257..a3f9663f72 100644 --- a/pointer/smudge.go +++ b/pointer/smudge.go @@ -31,13 +31,12 @@ func Smudge(writer io.Writer, ptr *Pointer, workingfile string, cb lfs.CopyCallb } func downloadFile(writer io.Writer, ptr *Pointer, workingfile, mediafile string, cb lfs.CopyCallback) *lfs.WrappedError { + fmt.Fprintf(os.Stderr, "Downloading %s (%s)\n", workingfile, pb.FormatBytes(ptr.Size)) reader, size, wErr := lfs.Download(filepath.Base(mediafile)) if reader != nil { defer reader.Close() } - fmt.Fprintf(os.Stderr, "Downloading %s (%s)\n", workingfile, pb.FormatBytes(ptr.Size)) - if wErr != nil { wErr.Errorf("Error downloading %s.", mediafile) return wErr