Explorar o código

Catching everything else in the put hook.

Winston Li %!s(int64=12) %!d(string=hai) anos
pai
achega
bdb34f89e7

+ 2 - 0
services/git-bridge/src/uk/ac/ic/wlgitbridge/git/handler/hook/WriteLatexPutHook.java

@@ -49,6 +49,8 @@ public class WriteLatexPutHook implements PreReceiveHook {
                     receivePack.sendMessage("hint: " + line);
                 }
                 receiveCommand.setResult(Result.REJECTED_OTHER_REASON, message);
+            } catch (Throwable t) {
+                t.printStackTrace();
             }
         }
     }