diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-09-03 09:38:30 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2010-09-03 10:57:55 -0700 |
commit | 9239c1038562c9c16a49165e3293f8c895ef50c2 (patch) | |
tree | f20c38d94b30bd68279081df57b4e00948f35740 /org.eclipse.jgit/resources | |
parent | e6bd689d2c48efb4e6662ffca2fbdbc7570d2db1 (diff) | |
download | jgit-9239c1038562c9c16a49165e3293f8c895ef50c2.tar.gz jgit-9239c1038562c9c16a49165e3293f8c895ef50c2.zip |
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 <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit/resources')
-rw-r--r-- | org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties | 1 |
1 files changed, 1 insertions, 0 deletions
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} |