mirror of
https://github.com/Jguer/yay
synced 2024-10-05 23:59:13 +00:00
fix(output): don't print exit status message
This commit is contained in:
parent
d1a6ead81c
commit
829f944659
3
main.go
3
main.go
|
@ -4,6 +4,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
||||
pacmanconf "github.com/Morganamilo/go-pacmanconf"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
@ -138,7 +139,7 @@ func main() {
|
|||
err = handleCmd(cmdArgs, db.Executor(dbExecutor))
|
||||
|
||||
if err != nil {
|
||||
if str := err.Error(); str != "" {
|
||||
if str := err.Error(); str != "" && !strings.Contains(str, "exit status") {
|
||||
fmt.Fprintln(os.Stderr, str)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue