Skip to content

Commit

Permalink
Format exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
ghubstan committed Oct 6, 2020
1 parent 9942529 commit 5f9b1e6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import static bisq.core.support.SupportType.MEDIATION;
import static bisq.core.support.SupportType.REFUND;
import static bisq.core.support.SupportType.TRADE;
import static java.lang.String.format;
import static java.net.InetAddress.getLoopbackAddress;
import static java.util.Arrays.asList;

Expand Down Expand Up @@ -107,7 +108,7 @@ void registerDisputeAgent(String disputeAgentType, String registrationKey) {
throw new IllegalArgumentException("trade agent registration not supported");
}
} else {
throw new IllegalArgumentException("unknown dispute agent type " + disputeAgentType);
throw new IllegalArgumentException(format("unknown dispute agent type '%s'", disputeAgentType));
}
}

Expand Down

0 comments on commit 5f9b1e6

Please sign in to comment.