Skip to content

Commit

Permalink
fix Serkan's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kmetin committed Oct 18, 2023
1 parent ccfb425 commit 2d916cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/commands/migration/migration_stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ func dataStructuresToBeMigrated(ctx context.Context, ec plug.ExecContext, migrat
Type: m.Type,
})
}
} else {
return nil, fmt.Errorf("no datastructures found to migrate")
}
return dss, nil
}
Expand Down Expand Up @@ -280,6 +282,8 @@ func fetchMigrationReport(ctx context.Context, ci *hazelcast.ClientInternal, mig
return "", err
}
return m, nil
} else {
return "", fmt.Errorf("migration report cannot be found")
}
return "", nil
}
Expand Down

0 comments on commit 2d916cf

Please sign in to comment.