From 5d1e266ea39b3afacd4d147b3b81a657c91f5cba Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 8 Jun 2021 09:30:04 +0200 Subject: [PATCH] Improve error reporting on turn reuse --- syndicate/actor.rkt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syndicate/actor.rkt b/syndicate/actor.rkt index 5625af2..5dd2eb2 100644 --- a/syndicate/actor.rkt +++ b/syndicate/actor.rkt @@ -301,7 +301,8 @@ (define (turn-enqueue! turn f action) (define qs (turn-queues turn)) - (when (not qs) (error 'turn-enqueue! "Attempt to reuse a committed turn")) + (when (not qs) + (error 'turn-enqueue! "Attempt to reuse a committed turn in facet ~a" (turn-active-facet turn))) (hash-update! qs f (lambda (actions) (cons action actions)) '())) (define (turn-ref turn entity [attenuation '()])