Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/DataLakeStore/DataLakeStore/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Throw exception for Import-AzDataLakeStoreItem, Export-AzDataLakeStoreItem for store side exceptions. Earlier it used to write in the console.

## Version 1.2.7
* Added reference to System.Buffers explicitly in csproj and psd1.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,14 @@ public void BulkCopy(string destinationFolderPath, string accountName, string so
UpdateProgress(progress, cmdletRunningRequest);
if (status != null && cmdletRunningRequest != null)
{
foreach (var failedEntry in status.EntriesFailed)
if (status.EntriesFailed.Count > 0)
{
cmdletRunningRequest.WriteObject($"FailedTransfer: {failedEntry.EntryName} {failedEntry.Errors}");
string error = "";
foreach (var failedEntry in status.EntriesFailed)
{
error+=$"FailedTransfer: Name- {failedEntry.EntryName}, Type- {failedEntry.Type}, Status- {failedEntry.Status}, Error- {failedEntry.Errors}";
}
throw new AdlsException(error);
}
}
}
Expand Down