mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
fix(output): don't print exit status message
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user