summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/transport/ssh
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-17 20:31:41 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-17 23:07:45 -0400
commit23d0e14babe89fff39e377c8ea7295837b07a343 (patch)
tree918975bcf66963d652fc0b8429d211cd0001b404 /src/main/java/com/gitblit/transport/ssh
parentfa205f0c6bfa572a503caee44b5ff9f5086f99fb (diff)
downloadgitblit-23d0e14babe89fff39e377c8ea7295837b07a343.tar.gz
gitblit-23d0e14babe89fff39e377c8ea7295837b07a343.zip
[findbugs] Fix missing 'throw' on plugin installation failure
Diffstat (limited to 'src/main/java/com/gitblit/transport/ssh')
-rw-r--r--src/main/java/com/gitblit/transport/ssh/commands/PluginDispatcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/transport/ssh/commands/PluginDispatcher.java b/src/main/java/com/gitblit/transport/ssh/commands/PluginDispatcher.java
index 62b13576..6f8f95ae 100644
--- a/src/main/java/com/gitblit/transport/ssh/commands/PluginDispatcher.java
+++ b/src/main/java/com/gitblit/transport/ssh/commands/PluginDispatcher.java
@@ -518,7 +518,7 @@ public class PluginDispatcher extends DispatchCommand {
if (gitblit.installPlugin(urlOrId, !disableChecksum)) {
stdout.println(String.format("Installed %s", urlOrId));
} else {
- new UnloggedFailure(1, String.format("Failed to install %s", urlOrId));
+ throw new UnloggedFailure(1, String.format("Failed to install %s", urlOrId));
}
} else {
PluginRelease pr = gitblit.lookupRelease(urlOrId, version);