Permalink
Browse files

improve VaryingPoissonProcess exceptions per review

  • Loading branch information...
1 parent f3452d8 commit 35e4ac159f8af807d4ff7bd69d0d4f6c95e088c5 Stephan Zuercher committed Feb 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 loadtest/src/main/scala/net/lag/kestrel/loadtest/VaryingPoissonProcess.scala
View
4 loadtest/src/main/scala/net/lag/kestrel/loadtest/VaryingPoissonProcess.scala
@@ -10,11 +10,11 @@ import java.lang.IllegalArgumentException
case class ArrivalRate(val arrivalsPerSecond: Int, val duration: Duration) {
if (arrivalsPerSecond <= 0) {
- throw new IllegalArgumentException("arrivals must be >= 1")
+ throw new IllegalArgumentException("arrivalsPerSecond must be >= 1: " + arrivalsPerSecond)
}
if (duration < 1.millisecond) {
- throw new IllegalArgumentException("duration must be >= 1 millisecond")
+ throw new IllegalArgumentException("duration must be >= 1 millisecond: " + duration)
}
}

0 comments on commit 35e4ac1

Please sign in to comment.