Skip to content

Commit

Permalink
Incorporate librpm fix feedback (#22098)
Browse files Browse the repository at this point in the history
- re-order imports
- fix capitalization in error string
  • Loading branch information
leehinman committed Oct 22, 2020
1 parent 2e7b902 commit 3842bee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/auditbeat/module/system/package/rpm_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
package pkg

import (
"debug/elf"
"errors"
"fmt"
"runtime"
"strings"
"time"
"unsafe"

"debug/elf"

"github.com/coreos/pkg/dlopen"
)

Expand Down Expand Up @@ -257,7 +256,7 @@ func openLibrpm() (*librpm, error) {

librpm.handle, err = dlopen.GetHandle(librpmNames)
if err != nil {
return nil, fmt.Errorf("Couldn't open %v", librpmNames)
return nil, fmt.Errorf("couldn't open %v: %v", librpmNames, err)
}

librpm.rpmtsCreate, err = librpm.handle.GetSymbolPointer("rpmtsCreate")
Expand Down

0 comments on commit 3842bee

Please sign in to comment.