More logging on failed plugin file name guessing

This commit is contained in:
Roman Shevchenko
2012-03-21 12:37:56 +01:00
parent b50226fbfe
commit c9d38d7dcc
@@ -329,6 +329,7 @@ public class PluginDownloader {
if (fileName == null || !PathUtil.isValidFileName(fileName)) {
FileUtil.delete(file);
LOG.warn("Invalid file name (header=" + contentDisposition + "; url=" + connection.getURL() + "; name=" + fileName + ")");
throw new IOException("Invalid filename returned by the server");
}