summaryrefslogtreecommitdiffstats
path: root/idrop-lite
diff options
context:
space:
mode:
authorLISA STILLWELL <lisa@simon.local>2012-01-20 15:02:24 (GMT)
committer LISA STILLWELL <lisa@simon.local>2012-01-20 15:02:24 (GMT)
commitfe5ea069f4c061521228eaa51a51b8ab7335ebb2 (patch)
treed1dc484d982e261a3530834fb4c8b8bfb39aed64 /idrop-lite
parent573b0fad2299e25d7e2b8e255905026bb0ed0f0f (diff)
downloadQCG-Data-fe5ea069f4c061521228eaa51a51b8ab7335ebb2.zip
QCG-Data-fe5ea069f4c061521228eaa51a51b8ab7335ebb2.tar.gz
QCG-Data-fe5ea069f4c061521228eaa51a51b8ab7335ebb2.tar.bz2
[#550] added error mesaages for malformed url
Diffstat (limited to 'idrop-lite')
-rw-r--r--idrop-lite/src/main/java/org/irods/jargon/idrop/lite/UploadFromURLDialog.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/UploadFromURLDialog.java b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/UploadFromURLDialog.java
index 65e1565..b4ec595 100644
--- a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/UploadFromURLDialog.java
+++ b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/UploadFromURLDialog.java
@@ -174,11 +174,11 @@ public class UploadFromURLDialog extends javax.swing.JDialog {
connection = url.openConnection();
fileSize = connection.getContentLength();
} catch (MalformedURLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ idropApplet.showMessageFromOperation("Please enter a valid URL");
+ return;
} catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ idropApplet.showMessageFromOperation("Please enter a valid URL");
+ return;
}
DefaultTableModel tm = idropApplet.getiDropCore().getUploadTableModel();