From 98696af9f87eeefd1fc4df388ef8d309e00a17a5 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 13 Dec 2018 03:27:37 +0000 Subject: [PATCH] service: log failing path in FileService call. --- mitogen/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitogen/service.py b/mitogen/service.py index 9aa4af83..073c9d6f 100644 --- a/mitogen/service.py +++ b/mitogen/service.py @@ -749,7 +749,7 @@ class FileService(Service): proceed normally, without the associated thread needing to be forcefully killed. """ - unregistered_msg = 'Path is not registered with FileService.' + unregistered_msg = 'Path %r is not registered with FileService.' context_mismatch_msg = 'sender= kwarg context must match requestee context' #: Burst size. With 1MiB and 10ms RTT max throughput is 100MiB/sec, which @@ -911,7 +911,7 @@ class FileService(Service): Unregistered path, or Sender did not match requestee context. """ if path not in self._paths and not self._prefix_is_authorized(path): - raise Error(self.unregistered_msg) + raise Error(self.unregistered_msg % (path,)) if msg.src_id != sender.context.context_id: raise Error(self.context_mismatch_msg)