From a429b173990e9a3798069c9ea7bcf7cdf0557907 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 26 Jan 2023 18:32:53 +0100 Subject: [PATCH] Improved error message --- app/src/main/java/eu/faircode/email/Core.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 8ffd838551..6f7031f924 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1897,7 +1897,8 @@ class Core { private static void onDelete(Context context, JSONArray jargs, EntityAccount account, EntityFolder folder, List messages, POP3Folder ifolder, POP3Store istore, State state) throws MessagingException, IOException { // Delete from server if (!EntityFolder.INBOX.equals(folder.type) || account.leave_deleted) - throw new IllegalArgumentException("POP3: invalid DELETE"); + throw new IllegalArgumentException("POP3: invalid DELETE" + + " folder=" + folder.type + " leave=" + account.leave_deleted); Map map = findMessages(context, folder, messages, istore, ifolder); for (EntityMessage message : messages) {