Print IOException when uploading web editor data fails (#2087)

This commit is contained in:
Luck 2020-03-24 10:44:31 +00:00
parent 2adea2d3dc
commit 0729be0f0a
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -137,6 +137,7 @@ public final class WebEditor {
try {
pasteId = plugin.getBytebin().postContent(bytesOut.toByteArray(), AbstractHttpClient.JSON_TYPE, false).key();
} catch (IOException e) {
new RuntimeException("Error uploading data to bytebin", e).printStackTrace();
Message.EDITOR_UPLOAD_FAILURE.send(sender);
return CommandResult.STATE_ERROR;
}