Skip to content

Commit

Permalink
[Java] Tidy up warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb01 committed Sep 17, 2024
1 parent b04512d commit 20ae0d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static void failOnClusterError()
if (null != warning)
{
System.err.println("\n*** Warning captured with error ***");
warning.printStackTrace();
warning.printStackTrace(System.err);
}

throw new RuntimeException("Cluster node received error", error);
Expand All @@ -167,7 +167,7 @@ public static void failOnClusterError()
if (Thread.currentThread().isInterrupted() && null != warning)
{
System.err.println("\n*** Warning captured with interrupt ***");
warning.printStackTrace();
warning.printStackTrace(System.err);
}
}

Expand Down

0 comments on commit 20ae0d6

Please sign in to comment.