Skip to content

Commit

Permalink
IJMP-1332-bugfix/IJMP-1332-Cut/Paste-does-not-work-properly-when-movi…
Browse files Browse the repository at this point in the history
…ng-sequential-dataset
  • Loading branch information
ATsikhamirau committed Jan 11, 2024
1 parent 75654f5 commit f1cf4a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ class SequentialToPdsMover(val dataOpsManager: DataOpsManager) : AbstractFileMov
memberName = memberName
).cancelByIndicator(progressIndicator).execute()

if (!response.isSuccessful && response.errorBody()?.string()?.contains("data set is empty") == true) {
// Proceed with deletion of source dataset in case of successful response or dataset was empty, throw exception otherwise
if (response.isSuccessful || response.errorBody()?.string()?.contains("data set is empty") == true) {
if (operation.isMove) {
val deleteResponse = api<DataAPI>(
url = connectionConfig.url,
Expand Down

0 comments on commit f1cf4a9

Please sign in to comment.