]> source.dussan.org Git - jgit.git/commit
UploadPack: Introduce ErrorWriter 27/146527/9
authorMasaya Suzuki <masayasuzuki@google.com>
Tue, 23 Jul 2019 18:10:24 +0000 (11:10 -0700)
committerMasaya Suzuki <masayasuzuki@google.com>
Wed, 9 Oct 2019 17:01:06 +0000 (10:01 -0700)
commit63bd24cf356af4a354ef452b01411d1f2cbbec80
tree0d0d4118562cde34901b9150d607e9f1fa7d7516
parentc9a8d3d040a02a0323fb4da7af73e5f06d5ae9d0
UploadPack: Introduce ErrorWriter

ErrorWriter writes an error message to the user. The implementation is
swapped once it detects that the client supports sideband. By default it
uses the protocol level ERR packet, which was introduced recently.

In total the error output is done in two different places;
UploadPack#upload and UploadPack#sendPack. These will be consolidated in
the next change.

Change-Id: Ia8d72e31170bbeafc8ffa8ddb92702196af8a587
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java