Skip to content

Commit

Permalink
optimized UpdateSuppressionException#toString
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Jul 16, 2023
1 parent 414c408 commit 1cfd772
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/carpet/helpers/UpdateSuppressionException.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ public ITextComponent getMessageText()
@Override
public String getMessage()
{
return this.getMessageText().getString();
}

@Override
public String toString()
{
return this.getMessage();
return String.format("%s (%s)", this.getMessageText().getString(), this.getCause().getClass().getSimpleName());
}

public static void noop()
Expand Down

0 comments on commit 1cfd772

Please sign in to comment.