72f55b857b
If the message doesn't contain ':', we don't properly discard the message, so we end up slicing it like msg[:-1]. This can be reproduced if one runs 'aerc foo', as the server receives 'foo' as the message. 'aerc foo' still doesn't do anything very user friendly, but at least it doesn't panic horribly. While at it, do the 'got message' log at the very beginning, so that the user can see what message the server got before reporting the command as invalid. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> |
||
---|---|---|
.. | ||
format | ||
sort | ||
templates | ||
ui | ||
uidstore | ||
dirstore.go | ||
history.go | ||
msgstore.go | ||
oauthbearer.go | ||
open.go | ||
open_darwin.go | ||
socket.go |