mirror of
https://github.com/mjl-/mox.git
synced 2025-06-28 02:28:15 +03:00
webmail: when trying to empty an already empty mailbox, make it a user error, not server error
server errors could cause error logging.
This commit is contained in:
parent
9f3cb7340b
commit
cad585a70e
@ -1303,7 +1303,7 @@ func (Webmail) MailboxEmpty(ctx context.Context, mailboxID int64) {
|
||||
xcheckf(ctx, err, "deleting messages")
|
||||
|
||||
if n == 0 {
|
||||
xcheckf(ctx, errors.New("no messages in mailbox"), "emptying mailbox")
|
||||
xcheckuserf(ctx, errors.New("no messages in mailbox"), "emptying mailbox")
|
||||
}
|
||||
|
||||
mb.ModSeq = modseq
|
||||
|
Loading…
x
Reference in New Issue
Block a user