diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-10-27 13:26:10 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-11-09 21:59:24 +0100 |
commit | 419d67fc6822651e9a0fa9a65698799fabc9ac87 (patch) | |
tree | 67aa0a898447f8a7ae003999718e88456b18d6c8 /lib/crypto | |
parent | 9b49bb1c80e0f713cef59b3617e07ae1e1a3c951 (diff) | |
download | aerc-419d67fc6822651e9a0fa9a65698799fabc9ac87.tar.gz |
msgviewer: show error if MessageInfo has error
MessageInfo structs can be returned from the workers with parser errors.
MessageViews were previously prevented from opening if the error field
was not nil, however the addition of message view splits have allowed
these messages to have split views created. A panic can occur if a split
is open and one of these messages is scrolled over.
Prevent access to MessageInfo methods if the Error field is set.
Display the error to the user in the split view. The partSwitcher will
be nil if an error is set: check for this condition before calling it's
methods.
Reported-by: Ben Lee-Cohen <ben@lee-cohen.com>
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/crypto')
0 files changed, 0 insertions, 0 deletions