on failure to extract a plugin, log the message and bail

This commit is contained in:
Shay Banon 2012-05-15 23:56:31 +03:00
parent b05228485d
commit 140ede1cdd
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package org.elasticsearch.plugins;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.Version;
import org.elasticsearch.common.collect.Tuple;
import org.elasticsearch.common.http.client.HttpDownloadHelper;
@ -196,7 +197,8 @@ public class PluginManager {
Streams.copy(zipFile.getInputStream(zipEntry), new FileOutputStream(target));
}
} catch (Exception e) {
System.err.println("failed to extract plugin [" + pluginFile + "]");
System.err.println("failed to extract plugin [" + pluginFile + "]: " + ExceptionsHelper.detailedMessage(e));
return;
} finally {
if (zipFile != null) {
try {