mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
Better error.
This commit is contained in:
parent
07049c2ac8
commit
dfad50b1c2
@ -86,8 +86,8 @@ def _authorization_decorator(required_secrets):
|
||||
try:
|
||||
secrets = _extract_secrets(authorization, required_secrets)
|
||||
except ClientSecretsException:
|
||||
request.setResponseCode(400)
|
||||
return b""
|
||||
request.setResponseCode(http.BAD_REQUEST)
|
||||
return b"Missing required secrets"
|
||||
return f(self, request, secrets, *args, **kwargs)
|
||||
|
||||
return route
|
||||
|
Loading…
Reference in New Issue
Block a user