Skip to content

Commit 99d8a19

Browse files
Merge pull request #987 from Banovvv/main
Improved exception messages in LargeFileUploadTask
2 parents 09e2da7 + d381cb1 commit 99d8a19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.Graph.Core/Tasks/LargeFileUploadTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ public LargeFileUploadTask(IUploadSession uploadSession, Stream uploadStream, in
6363
{
6464
if (!uploadStream.CanRead || !uploadStream.CanSeek)
6565
{
66-
throw new ArgumentException("Must provide stream that can read and seek");
66+
throw new ArgumentException("Must provide a stream that can read and seek", nameof(uploadStream));
6767
}
6868
if (uploadStream.Length < 1)
6969
{
70-
throw new ArgumentException("Must a stream that is not empty");
70+
throw new ArgumentException("Must provide a stream that is not empty", nameof(uploadStream));
7171
}
7272
this.Session = uploadSession;
7373
this._requestAdapter = requestAdapter ?? InitializeAdapter(Session.UploadUrl);

0 commit comments

Comments
 (0)