Merge remote-tracking branch 'origin/GP-1-dragonmacher-loop-counter-fix'

(#8104)
This commit is contained in:
Ryan Kurtz 2025-05-15 11:58:33 -04:00
commit d45a8d4c75

View file

@ -157,7 +157,8 @@ public class DataTypeTreeCopyMoveTask extends Task {
if (n > 1) { if (n > 1) {
message = "Encountered " + n + " errors copying/moving. See the log for details"; message = "Encountered " + n + " errors copying/moving. See the log for details";
for (int i = 0; i < 10; i++) { int max = n < 10 ? n : 10;
for (int i = 0; i < max; i++) {
Msg.error(this, errors.get(i)); Msg.error(this, errors.get(i));
} }
} }