]> source.dussan.org Git - jgit.git/commit
InternalPushConnection: don't swallow RuntimeException 91/130691/5
authorHan-Wen Nienhuys <hanwen@google.com>
Tue, 9 Oct 2018 14:22:06 +0000 (16:22 +0200)
committerHan-Wen Nienhuys <hanwen@google.com>
Mon, 15 Oct 2018 14:45:19 +0000 (16:45 +0200)
commit8a5b044a99deb7c6b2166c3f763f90b4e3d8d223
tree8e2e6e226ddc5f205cf960b9f42f63b74c7ef3e2
parent18dce03a4104b75980866fb21076ce1cc1706b3d
InternalPushConnection: don't swallow RuntimeException

Uncaught exceptions are handled by java.lang.Thread's handler, which
prints it to stderr.

This is useful because InternalPushConnection is used in tests, and
during development, the server side may have programming errors that
manifest as RuntimeExceptions.

Before this change, all types of failures would lead to a uniform
failure message "test://test/conn0: push not permitted" on the client.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Change-Id: I0983cbeb86d36fa7a9313373f5fce54971f804ec
org.eclipse.jgit/src/org/eclipse/jgit/transport/InternalPushConnection.java