aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/pipe.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/pipe.go')
-rw-r--r--commands/msg/pipe.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/msg/pipe.go b/commands/msg/pipe.go
index 878fd18c..fc1ac8f8 100644
--- a/commands/msg/pipe.go
+++ b/commands/msg/pipe.go
@@ -236,6 +236,7 @@ func (Pipe) Execute(aerc *widgets.Aerc, args []string) error {
func newMessagesReader(messages []*types.FullMessage, useMbox bool) io.Reader {
pr, pw := io.Pipe()
go func() {
+ defer log.PanicHandler()
defer pw.Close()
for _, msg := range messages {
var err error