summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-16 18:41:48 +0000
committerErik Johnston <erik@matrix.org>2014-12-16 18:41:48 +0000
commit2d7716d4d06285eec6d7e4e0c7109be3b278c127 (patch)
tree03cc6eb0f3c2af46d4fea420d9cfc3f92d710f9d /synapse
parentMerge branch 'develop' of github.com:matrix-org/synapse into release-v0.6.0 (diff)
downloadsynapse-2d7716d4d06285eec6d7e4e0c7109be3b278c127.tar.xz
Make error messages slightly more helpful
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/federation.py10
1 files 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