From 9239c1038562c9c16a49165e3293f8c895ef50c2 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 3 Sep 2010 09:38:30 -0700 Subject: ReceivePack: Rethrow exceptions caught during indexing If we get an exception while indexing the incoming pack, its likely a stream corruption. We already report an error to the client, but we eat the stack trace, which makes debugging issues related to a bug inside of JGit nearly impossible. Rethrow it under a new type UnpackException, so embedding servers or applications can catch the error and provide it to a human who might be able to forward such traces onto a JGit developer for evaluation. Change-Id: Icad41148bbc0c76f284c7033a195a6b51911beab Signed-off-by: Shawn O. Pearce --- org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties | 1 + 1 file changed, 1 insertion(+) (limited to 'org.eclipse.jgit/resources') diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties index 14c0ba0fc8..017fc5da98 100644 --- a/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties +++ b/org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties @@ -383,6 +383,7 @@ unknownObjectType=Unknown object type {0}. unknownRepositoryFormat2=Unknown repository format "{0}"; expected "0". unknownRepositoryFormat=Unknown repository format unknownZlibError=Unknown zlib error. +unpackException=Exception while parsing pack stream unmergedPath=Unmerged path: {0} unreadablePackIndex=Unreadable pack index: {0} unrecognizedRef=Unrecognized ref: {0} -- cgit v1.2.3