diff options
author | David Baker <dave@matrix.org> | 2015-04-23 13:23:44 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-04-23 13:23:44 +0100 |
commit | a2c10d37d7052a1ab6cf7188c3b4d763850e1561 (patch) | |
tree | 0ede78da1d5afe187e16f1edf97c14c566d2843f /synapse/api/auth.py | |
parent | Remove now-redundant email config (diff) | |
download | synapse-a2c10d37d7052a1ab6cf7188c3b4d763850e1561.tar.xz |
Add an error code to 'missing token' response.
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r-- | synapse/api/auth.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index 3d2b45d217..11f76c06f7 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -372,7 +372,8 @@ class Auth(object): defer.returnValue((user, ClientInfo(device_id, token_id))) except KeyError: raise AuthError( - self.TOKEN_NOT_FOUND_HTTP_STATUS, "Missing access token." + self.TOKEN_NOT_FOUND_HTTP_STATUS, "Missing access token.", + errcode=Codes.MISSING_TOKEN ) @defer.inlineCallbacks |