mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-01 05:57:51 +01:00
Print IOException when uploading web editor data fails (#2087)
This commit is contained in:
parent
2adea2d3dc
commit
0729be0f0a
@ -137,6 +137,7 @@ public final class WebEditor {
|
|||||||
try {
|
try {
|
||||||
pasteId = plugin.getBytebin().postContent(bytesOut.toByteArray(), AbstractHttpClient.JSON_TYPE, false).key();
|
pasteId = plugin.getBytebin().postContent(bytesOut.toByteArray(), AbstractHttpClient.JSON_TYPE, false).key();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
new RuntimeException("Error uploading data to bytebin", e).printStackTrace();
|
||||||
Message.EDITOR_UPLOAD_FAILURE.send(sender);
|
Message.EDITOR_UPLOAD_FAILURE.send(sender);
|
||||||
return CommandResult.STATE_ERROR;
|
return CommandResult.STATE_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user