From 6797f9347603aff0831bf56566fbf164cbdda179 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 8 Jul 2019 18:22:41 -0400 Subject: :exec, :pipe: show exit status on completion --- commands/exec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/exec.go') diff --git a/commands/exec.go b/commands/exec.go index 72a563d..a46b93a 100644 --- a/commands/exec.go +++ b/commands/exec.go @@ -37,7 +37,8 @@ func (_ ExecCmd) Execute(aerc *widgets.Aerc, args []string) error { Color(tcell.ColorDefault, tcell.ColorRed) } else { aerc.PushStatus(fmt.Sprintf( - "%s: complete", args[0]), 10*time.Second). + "%s: completed with status %d", args[0], + cmd.ProcessState.ExitCode()), 10*time.Second). Color(tcell.ColorDefault, tcell.ColorDefault) } }() -- cgit v1.2.3