From cbcf58f1c0e2bf71eb76e71e80a08deb21072944 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 11 Jul 2015 15:51:42 +0200 Subject: [PATCH] repository: Improve error message --- repository/index.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/repository/index.go b/repository/index.go index 29a725872..320b78aee 100644 --- a/repository/index.go +++ b/repository/index.go @@ -2,7 +2,6 @@ package repository import ( "encoding/json" - "errors" "fmt" "io" "sync" @@ -79,7 +78,7 @@ func (idx *Index) Lookup(id backend.ID) (packID backend.ID, tpe pack.BlobType, o } debug.Log("Index.Lookup", "id %v not found", id.Str()) - return nil, pack.Data, 0, 0, errors.New("id not found") + return nil, pack.Data, 0, 0, fmt.Errorf("id %v not found in index", id) } // Has returns true iff the id is listed in the index.