We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3452d8 commit 35e4ac1Copy full SHA for 35e4ac1
loadtest/src/main/scala/net/lag/kestrel/loadtest/VaryingPoissonProcess.scala
@@ -10,11 +10,11 @@ import java.lang.IllegalArgumentException
10
11
case class ArrivalRate(val arrivalsPerSecond: Int, val duration: Duration) {
12
if (arrivalsPerSecond <= 0) {
13
- throw new IllegalArgumentException("arrivals must be >= 1")
+ throw new IllegalArgumentException("arrivalsPerSecond must be >= 1: " + arrivalsPerSecond)
14
}
15
16
if (duration < 1.millisecond) {
17
- throw new IllegalArgumentException("duration must be >= 1 millisecond")
+ throw new IllegalArgumentException("duration must be >= 1 millisecond: " + duration)
18
19
20
0 commit comments