diff options
| author | Patrick Steinhardt <[email protected]> | 2015-05-22 08:58:21 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <[email protected]> | 2015-05-22 09:02:39 +0200 |
| commit | d95932c84a2b9c926490def345d71d45bb19f344 (patch) | |
| tree | 0bee427365b50cefea283382f40875f109ca0e6a /submodule.go | |
| parent | a843b7247f24a2125c30c865f9d8ea706ce3d768 (diff) | |
handles: panic when we cannot retrieve handle data
Diffstat (limited to 'submodule.go')
| -rw-r--r-- | submodule.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.go b/submodule.go index 0588ec5..3882462 100644 --- a/submodule.go +++ b/submodule.go @@ -103,7 +103,7 @@ func SubmoduleVisitor(csub unsafe.Pointer, name *C.char, handle unsafe.Pointer) if callback, ok := pointerHandles.Get(handle).(SubmoduleCbk); ok { return (C.int)(callback(sub, C.GoString(name))) } else { - return -1 + panic("invalid submodule visitor callback") } } |
