Proper UID FETCH errors

pull/194/merge
M66B 3 years ago
parent 786326056b
commit 057b9c3ede

@ -3246,8 +3246,10 @@ class Core {
for (Response response : responses) for (Response response : responses)
if (response.isBYE()) if (response.isBYE())
return new MessagingException("UID FETCH", new IOException(response.toString())); return new MessagingException("UID FETCH", new IOException(response.toString()));
else if (response.isNO() || response.isBAD()) else if (response.isNO())
return new MessagingException(response.toString()); return new CommandFailedException(response);
else if (response.isBAD())
return new BadCommandException(response);
return new MessagingException("UID FETCH failed"); return new MessagingException("UID FETCH failed");
} }
} }

Loading…
Cancel
Save