ftp error message added
authorŁukasz Wojtas <lukasz.wojtas@imgw.pl>
Thu, 21 Mar 2013 13:48:51 +0000 (14:48 +0100)
committerŁukasz Wojtas <lukasz.wojtas@imgw.pl>
Thu, 21 Mar 2013 13:48:51 +0000 (14:48 +0100)
src/pl/imgw/odimH5/util/FTPContainer.java
src/pl/imgw/odimH5/util/FTPHandler.java

index d41e8f9..1f255a3 100644 (file)
@@ -16,7 +16,7 @@ public class FTPContainer {
     private String address = "";
     private String login = "";
     private StringBuilder password = new StringBuilder("");
-    private String remoteDir = "";
+    private String remoteDir = "/";
     
     /**
      * 
index 9714364..144607a 100644 (file)
@@ -75,7 +75,6 @@ public class FTPHandler {
                             ftpCont.getAddress());
                     break;
                 }
-
         }
 
         return true;
@@ -137,10 +136,14 @@ public class FTPHandler {
         }catch (FTPConnectionClosedException e) {
              
         }catch (FTPException e) {
-            e.printStackTrace();
+            System.out.println(radarID + ": sending file " + file.getName()
+                    + " to " + ftpCont.getAddress() + " FAILED: "
+                    + e.getMessage());
             return false;
         } catch (IOException e) {
-            e.printStackTrace();
+            System.out.println(radarID + ": sending file " + file.getName()
+                    + " to " + ftpCont.getAddress() + " FAILED: "
+                    + e.getMessage());
             return false;
         } finally {