mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-13 16:01:28 +05:30
Merge pull request #191 from QiWang19/list-error
List wraps the error from secretservice_linux.c.
This commit is contained in:
@@ -96,7 +96,8 @@ func (h Secretservice) List() (map[string]string, error) {
|
|||||||
defer C.freeListData(&acctsC, listLenC)
|
defer C.freeListData(&acctsC, listLenC)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
defer C.g_error_free(err)
|
defer C.g_error_free(err)
|
||||||
return nil, errors.New("Error from list function in secretservice_linux.c likely due to error in secretservice library")
|
errMsg := (*C.char)(unsafe.Pointer(err.message))
|
||||||
|
return errors.New(C.GoString(errMsg))
|
||||||
}
|
}
|
||||||
|
|
||||||
resp := make(map[string]string)
|
resp := make(map[string]string)
|
||||||
|
|||||||
Reference in New Issue
Block a user