aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ipc/send.go
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2023-03-04 10:56:48 +0100
committerRobin Jarry <robin@jarry.cc>2023-03-07 00:13:18 +0100
commita0318de57f4884e6df76cbe74acf6221fccaace3 (patch)
treedb38596f26effccb6fd87f523bec55ad76ba52d1 /lib/ipc/send.go
parentd3dea73aa53791a94f86c31689a10880fabeb84c (diff)
downloadaerc-a0318de57f4884e6df76cbe74acf6221fccaace3.tar.gz
ipc: stay silent if command succeeded
It would be nicer if aerc behaved the same way most other tools behave in that no news is good news. Signed-off-by: Moritz Poldrack <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/ipc/send.go')
-rw-r--r--lib/ipc/send.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ipc/send.go b/lib/ipc/send.go
index 522e944a..4b09268c 100644
--- a/lib/ipc/send.go
+++ b/lib/ipc/send.go
@@ -37,9 +37,7 @@ func ConnectAndExec(args []string) error {
}
// TODO: handle this in a more elegant manner
- if resp.Error == "" {
- fmt.Println("result: success")
- } else {
+ if resp.Error != "" {
fmt.Println("result: ", resp.Error)
}