Skip to content

Commit 391df63

Browse files
author
Caitlin Bales (MSFT)
committed
Happy grammar edits
1 parent 4ce0c96 commit 391df63

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/java/com/microsoft/graph/requests/extensions/ChunkedUploadRequest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class ChunkedUploadRequest {
4545
private final BaseRequest baseRequest;
4646

4747
/**
48-
* The max retry for single request.
48+
* The max retry for a single request.
4949
*/
5050
private final int maxRetry;
5151

@@ -57,8 +57,8 @@ public class ChunkedUploadRequest {
5757
/**
5858
* Construct the ChunkedUploadRequest
5959
*
60-
* @param requestUrl The upload url.
61-
* @param client The OneDrive client.
60+
* @param requestUrl The upload URL.
61+
* @param client The Graph client.
6262
* @param options The query options.
6363
* @param chunk The chunk byte array.
6464
* @param chunkSize The chunk array size.
@@ -92,7 +92,7 @@ public ChunkedUploadRequest(final String requestUrl,
9292
/**
9393
* Upload a chunk with tries.
9494
*
95-
* @param responseHandler The handler handle http response.
95+
* @param responseHandler The handler handle HTTP response.
9696
* @param <UploadType> The upload item type.
9797
* @return The upload result.
9898
*/
@@ -102,7 +102,7 @@ public <UploadType> ChunkedUploadResult upload(
102102
try {
103103
Thread.sleep(RETRY_DELAY * this.retryCount * this.retryCount);
104104
} catch (final InterruptedException e) {
105-
this.baseRequest.getClient().getLogger().logError("Exception while waiting upload file retry", e);
105+
this.baseRequest.getClient().getLogger().logError("Exception while waiting to retry file upload.", e);
106106
}
107107

108108
ChunkedUploadResult result = null;
@@ -113,7 +113,7 @@ public <UploadType> ChunkedUploadResult upload(
113113
.getHttpProvider()
114114
.send(baseRequest, ChunkedUploadResult.class, this.data, responseHandler);
115115
} catch (final ClientException e) {
116-
this.baseRequest.getClient().getLogger().logDebug("Request failed with, retry if necessary.");
116+
this.baseRequest.getClient().getLogger().logDebug("Request failed with error, retry if necessary.\r\n" + e);
117117
}
118118

119119
if (result != null && result.chunkCompleted()) {
@@ -124,6 +124,6 @@ public <UploadType> ChunkedUploadResult upload(
124124
}
125125

126126
return new ChunkedUploadResult(
127-
new ClientException("Upload session failed to many times.", null));
127+
new ClientException("Upload session failed too many times.", null));
128128
}
129129
}

0 commit comments

Comments
 (0)