Skip to content
Snippets Groups Projects
Commit 986d616e authored by Shawn Pearce's avatar Shawn Pearce
Browse files

Correct ObjectWalk error message when bad object is found


Instead of including "ObjectId[SHA-1]" in the message, just
us the formatted SHA-1 name of the object by calling name().

Change-Id: I0d1d0e8207f8a3f02188e60242e4e9bf7420e88f
Signed-off-by: default avatarShawn O. Pearce <spearce@spearce.org>
parent 784b24dd
No related branches found
No related tags found
No related merge requests found
......@@ -283,9 +283,9 @@ public RevObject nextObject() throws MissingObjectException,
break;
treeWalk.getEntryObjectId(idBuffer);
throw new CorruptObjectException("Invalid mode " + mode
+ " for " + idBuffer.name() + " "
+ treeWalk.getEntryPathString() + " in " + currentTree
+ ".");
+ " for " + idBuffer.name() + " '"
+ treeWalk.getEntryPathString() + "' in "
+ currentTree.name() + ".");
}
treeWalk = treeWalk.next();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment