Skip to content

Commit

Permalink
r/storage_blob: adding a validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Aug 30, 2019
1 parent c6c56ec commit 99330c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/internal/services/storage/blobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (sbu BlobUpload) createEmptyPageBlob(ctx context.Context) error {

func (sbu BlobUpload) uploadPageBlob(ctx context.Context) error {
if sbu.Size != 0 {
// the user shouldn't need to specify this since we infer it
return fmt.Errorf("`size` cannot be set for an uploaded page blob")
}

// determine the details about the file
Expand Down

0 comments on commit 99330c9

Please sign in to comment.