This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-net.git
commit 5586d0d3f8c881eb076032d60f16c2e88a3fbe35 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jun 23 09:21:07 2023 -0400 Clean up exception handling in example --- src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java b/src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java index c5dbe7d1..10b15781 100644 --- a/src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java +++ b/src/main/java/org/apache/commons/net/examples/ftp/TFTPExample.java @@ -211,7 +211,7 @@ public final class TFTPExample { input = new FileInputStream(localFilename); } catch (final IOException e) { tftp.close(); - throw new RuntimeException("Error: could not open local file for reading.", e); + throw new IOException("Error: could not open local file for reading.", e); } open(tftp);