From 2d7716d4d06285eec6d7e4e0c7109be3b278c127 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 16 Dec 2014 18:41:48 +0000 Subject: [PATCH] Make error messages slightly more helpful --- synapse/handlers/federation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 4aec3563ac..fadb48fde6 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -163,7 +163,7 @@ class FederationHandler(BaseHandler): yield self._handle_new_event(e, fetch_missing=False) except: logger.exception( - "Failed to parse auth event %s", + "Failed to handle auth event %s", e.event_id, ) @@ -183,7 +183,7 @@ class FederationHandler(BaseHandler): yield self._handle_new_event(e) except: logger.exception( - "Failed to parse state event %s", + "Failed to handle state event %s", e.event_id, ) @@ -394,7 +394,7 @@ class FederationHandler(BaseHandler): yield self._handle_new_event(e, fetch_missing=False) except: logger.exception( - "Failed to parse auth event %s", + "Failed to handle auth event %s", e.event_id, ) @@ -408,7 +408,7 @@ class FederationHandler(BaseHandler): ) except: logger.exception( - "Failed to parse state event %s", + "Failed to handle state event %s", e.event_id, ) @@ -713,7 +713,7 @@ class FederationHandler(BaseHandler): event.event_id, e_id, known_ids, ) # FIXME: How does raising AuthError work with federation? - raise AuthError(403, "Auth events are stale") + raise AuthError(403, "Cannot find auth event") context.auth_events[(e.type, e.state_key)] = e