Skip to content

Commit eb6a7af

Browse files
committed
Patch holes in error setting
1 parent b948c23 commit eb6a7af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugin-vidarr/src/main/java/ca/on/oicr/gsi/shesmu/vidarr/ImportStateAttemptSubmit.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
public class ImportStateAttemptSubmit extends ImportState {
2121
private int retryMinutes = 5;
22-
List<String> errors = null;
22+
List<String> errors = List.of();
2323
private final int attempt;
2424

2525
public ImportStateAttemptSubmit(int attempt) {
@@ -77,6 +77,7 @@ public PerformResult perform(
7777
case 500:
7878
{ // Internal Server Error
7979
retryMinutes = Math.min(retryMinutes * 2, 60);
80+
errors = List.of(response.body());
8081
return new PerformResult(errors, ActionState.FAILED, this);
8182
}
8283
case 507:

0 commit comments

Comments
 (0)