diff --git a/src/hydra-queue-runner/token-server.hh b/src/hydra-queue-runner/token-server.hh index cdd03b5e..6c0cf716 100644 --- a/src/hydra-queue-runner/token-server.hh +++ b/src/hydra-queue-runner/token-server.hh @@ -39,7 +39,7 @@ public: : ts(ts), tokens(tokens) { if (tokens >= ts->maxTokens) - throw NoTokens(format("requesting more tokens (%d) than exist (%d)") % tokens); + throw NoTokens(format("requesting more tokens (%d) than exist (%d)") % tokens % ts->maxTokens); auto inUse(ts->inUse.lock()); while (*inUse + tokens > ts->maxTokens) if (timeout) {