Skip to content

Commit ffa24e7

Browse files
author
begoldsm
committed
Adding new messaging for upload failures
this indicates that the operation can potentially be retried.
1 parent d4873ad commit ffa24e7

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Models/DataLakeStoreFileSystemClient.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,10 @@ public void CopyFile(string destinationPath, string accountName, string sourcePa
406406

407407
TrackUploadProgress(uploadTask, progress, cmdletRunningRequest, cmdletCancellationToken);
408408
}
409+
catch (Exception e)
410+
{
411+
throw new CloudException(string.Format(Properties.Resources.UploadFailedMessage, e));
412+
}
409413
finally
410414
{
411415
ServicePointManager.Expect100Continue = previousExpect100;

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Properties/Resources.Designer.cs

Lines changed: 24 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Properties/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,7 @@
219219
<data name="TaskCancelledMessage" xml:space="preserve">
220220
<value>The operation is being cancelled, please wait...</value>
221221
</data>
222+
<data name="UploadFailedMessage" xml:space="preserve">
223+
<value>"Upload operation failed due to the following underlying error: {0}. You can try to resume the upload by specifying the "Resume" option. If the error persists, please contact Microsoft support."</value>
224+
</data>
222225
</root>

0 commit comments

Comments
 (0)