2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 14:56:29 +00:00

Shorten error message for tree errors

This commit is contained in:
Alexander Neumann 2015-10-11 19:25:02 +02:00
parent db85ab8aa0
commit 7db2369081
2 changed files with 4 additions and 4 deletions

View File

@ -204,14 +204,14 @@ type Error struct {
func (e Error) Error() string {
if e.BlobID != nil && e.TreeID != nil {
msg := "tree " + e.TreeID.String()
msg += ", blob " + e.BlobID.String()
msg := "tree " + e.TreeID.Str()
msg += ", blob " + e.BlobID.Str()
msg += ": " + e.Err.Error()
return msg
}
if e.TreeID != nil {
return "tree " + e.TreeID.String() + ": " + e.Err.Error()
return "tree " + e.TreeID.Str() + ": " + e.Err.Error()
}
return e.Err.Error()

View File

@ -219,7 +219,7 @@ func (idx *Index) generatePackList(selectFn func(indexEntry) bool) ([]*packJSON,
continue
}
debug.Log("Index.generatePackList", "handle blob %q", id[:8])
debug.Log("Index.generatePackList", "handle blob %v", id.Str())
if blob.packID.IsNull() {
debug.Log("Index.generatePackList", "blob %q has no packID! (type %v, offset %v, length %v)",