summaryrefslogtreecommitdiff
path: root/handles.go
diff options
context:
space:
mode:
Diffstat (limited to 'handles.go')
-rw-r--r--handles.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/handles.go b/handles.go
index d173785..1cbf6eb 100644
--- a/handles.go
+++ b/handles.go
@@ -1,6 +1,7 @@
package git
import (
+ "fmt"
"sync"
"unsafe"
)
@@ -72,7 +73,7 @@ func (v *HandleList) Get(handle unsafe.Pointer) interface{} {
v.RLock()
if _, ok := v.set[slot]; !ok {
- panic("invalid pointer handle")
+ panic(fmt.Sprintf("invalid pointer handle: %p", handle))
}
ptr := v.handles[slot]