Skip to content

Commit 95dd0d2

Browse files
committed
More specific error message
1 parent 0a66b4e commit 95dd0d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/chem/DownloadChemCompProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ private static boolean downloadChemCompRecord(String recordName) {
325325
success = true;
326326
}
327327
if(!success) {
328-
throw new IOException("Could not read from URL "+url.toString());
328+
throw new IOException("Malformed URL or no content found in "+url.toString());
329329
}
330330

331331
pw.flush();

0 commit comments

Comments
 (0)