mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 09:07:21 +01: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 New Issue
Block a user