# HG changeset patch # User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> # Date 1633337820 -7200 # Node ID b4d29515c22e189f7367d43bd4d9de77711e099b # Parent e068d2039e149a783cdd144783497cc5600b1e43 Downgrade "neither data nor error" from IOException to error We haven't sent anything to the server yet so we can try to send an error. diff --git a/src/main/java/org/monetdb/jdbc/MonetConnection.java b/src/main/java/org/monetdb/jdbc/MonetConnection.java --- a/src/main/java/org/monetdb/jdbc/MonetConnection.java +++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java @@ -3260,8 +3260,8 @@ public class MonetConnection try { downloadHandler.handleDownload(handle, path, true); if (!handle.hasBeenUsed()) { - String message = "Call to " + downloadHandler.getClass().getCanonicalName() + ".handleDownload for path '" + path + "' sent neither data nor an error message"; - throw new IOException(message); + String message = "Call to " + downloadHandler.getClass().getSimpleName() + ".handleDownload sent neither data nor error"; + handle.sendError(message); } } finally { handle.close();