diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-08-08 10:18:32 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-08-08 10:18:32 -0700 |
| commit | ab6e5c0dc48230fd781edebe936578590a22695f (patch) | |
| tree | b03f0c31ae227cf1963ddcff5bd2b5257fe30200 | |
| parent | 828a5ae429e5fc7d3bac692184b3b2ac1edea410 (diff) | |
| download | seaweedfs-ab6e5c0dc48230fd781edebe936578590a22695f.tar.xz seaweedfs-ab6e5c0dc48230fd781edebe936578590a22695f.zip | |
adjust error message
| -rw-r--r-- | weed/storage/needle/needle_parse_upload.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/needle/needle_parse_upload.go b/weed/storage/needle/needle_parse_upload.go index d97ca3101..4d244046e 100644 --- a/weed/storage/needle/needle_parse_upload.go +++ b/weed/storage/needle/needle_parse_upload.go @@ -90,7 +90,7 @@ func ParseUpload(r *http.Request, sizeLimit int64) (pu *ParsedUpload, e error) { pu.ContentMd5 = base64.StdEncoding.EncodeToString(h.Sum(nil)) if expectedChecksum := r.Header.Get("Content-MD5"); expectedChecksum != "" { if expectedChecksum != pu.ContentMd5 { - e = fmt.Errorf("Content-MD5 did not match md5 of file data [%s] != [%s]", expectedChecksum, pu.ContentMd5) + e = fmt.Errorf("Content-MD5 did not match md5 of file data expected [%s] received [%s] size %d", expectedChecksum, pu.ContentMd5, len(pu.UncompressedData)) return } } |
