Fix error messages for page blob range checks.
Fixes
@@ -87,10 +87,10 @@ func (b *Blob) modifyRange(blobRange BlobRange, bytes io.Reader, options *PutPag
return errors.New("the value for rangeEnd must be greater than or equal to rangeStart")
}
if blobRange.Start%512 != 0 {
- return errors.New("the value for rangeStart must be a modulus of 512")
+ return errors.New("the value for rangeStart must be a multiple of 512")
}
if blobRange.End%512 != 511 {
- return errors.New("the value for rangeEnd must be a modulus of 511")
+ return errors.New("the value for rangeEnd must be a multiple of 512 - 1")
}
params := url.Values{"comp": {"page"}}
