=act #3800: Add timeout value in AskTimeoutException message.

This commit is contained in:
Gaetan Hervouet 2013-12-18 17:30:19 -05:00
parent e25455e935
commit 4c2eb74c78
2 changed files with 9 additions and 1 deletions

View file

@ -330,7 +330,7 @@ private[akka] object PromiseActorRef {
val a = new PromiseActorRef(provider, result)
implicit val ec = a.internalCallingThreadExecutionContext
val f = scheduler.scheduleOnce(timeout.duration) {
result tryComplete Failure(new AskTimeoutException(s"Ask timed out on [$targetName]"))
result tryComplete Failure(new AskTimeoutException(s"Ask timed out on [$targetName] after [${timeout.duration.toMillis} ms]"))
}
result.future onComplete { _ try a.stop() finally f.cancel() }
a