diff options
author | Robin Jarry <robin@jarry.cc> | 2023-01-06 22:49:26 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-01-06 23:51:58 +0100 |
commit | 915b869e3fc6377be114c033763987de612c443c (patch) | |
tree | 95a2165a06cbda9ad0d092ac1b3816f50daa52c1 /commands/account/import-mbox.go | |
parent | 175c1c822084d0f42892729c8e095397bd830966 (diff) | |
download | aerc-915b869e3fc6377be114c033763987de612c443c.tar.gz |
lint: add missing panic handlers in goroutines
These issues were all reported by the new custom analyzer introduced in
previous commit.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'commands/account/import-mbox.go')
-rw-r--r-- | commands/account/import-mbox.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/account/import-mbox.go b/commands/account/import-mbox.go index c1ee5936..5d6a0a0c 100644 --- a/commands/account/import-mbox.go +++ b/commands/account/import-mbox.go @@ -53,6 +53,7 @@ func (ImportMbox) Execute(aerc *widgets.Aerc, args []string) error { } importFolder := func() { + defer log.PanicHandler() statusInfo := fmt.Sprintln("Importing", filename, "to folder", folder) aerc.PushStatus(statusInfo, 10*time.Second) log.Debugf(statusInfo) |