Fix paste

Former-commit-id: d64190d75c522f0fcca9e0c9daf7400e9cd6bce8
This commit is contained in:
Ghost_chu committed 2020-01-05 18:12:06 +08:00
1 parent cb441ac8b3
commit c8196a104f
2 files changed
+2 -2

No files matched your search

@@ -48,7 +48,7 @@ public class Paste {
*
* @return The paste result content.
*/
public String genNewPaste() {
public @NotNull String genNewPaste() {
StringBuilder finalReport = new StringBuilder();
finalReport.append("###############################\n");
finalReport.append("QuickShop-Reremake Paste Result\n");
@@ -215,9 +215,9 @@ public class SentryErrorReporter {
for (String record : context) {
this.context.recordBreadcrumb(new BreadcrumbBuilder().setMessage(record).build());
}
Paste paste = new Paste(plugin);
String pasteURL = "Failed to paste.";
try {
Paste paste = new Paste(plugin);
pasteURL = paste.paste(paste.genNewPaste());
} catch (Throwable ex) {
//Ignore