Remove process termination in case of error from runDNF function
log.Fatalf not only writes into a log, but also exits the process. Instead, we want the caller to handle the error. Also, the logged message is imho wrong.
This commit is contained in:
parent
44088d9a6b
commit
8644213bb7
1 changed files with 0 additions and 2 deletions
|
|
@ -2,7 +2,6 @@ package rpmmd
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"sort"
|
||||
|
|
@ -47,7 +46,6 @@ func runDNF(command string, arguments []string, result interface{}) error {
|
|||
cmd.Stderr = os.Stderr
|
||||
stdout, err := cmd.StdoutPipe()
|
||||
if err != nil {
|
||||
log.Fatalf("Could not execute dnf-json")
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue