fix(output): don't print exit status message

This commit is contained in:
jguer 2021-03-18 22:40:37 +01:00
parent d1a6ead81c
commit 829f944659
No known key found for this signature in database
GPG key ID: 6D6CC9BEA8556B35

View file

@ -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)
}