Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #440 from matrix-org/daniel/ise
Browse files Browse the repository at this point in the history
Include errcode on Internal Server Error
  • Loading branch information
NegativeMjark committed Dec 16, 2015
2 parents 4fab578 + 338c0a8 commit 5fc0344
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions synapse/http/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


from synapse.api.errors import (
cs_exception, SynapseError, CodeMessageException, UnrecognizedRequestError
cs_exception, SynapseError, CodeMessageException, UnrecognizedRequestError, Codes
)
from synapse.util.logcontext import LoggingContext, PreserveLoggingContext
import synapse.metrics
Expand Down Expand Up @@ -127,7 +127,10 @@ def wrapped_request_handler(self, request):
respond_with_json(
request,
500,
{"error": "Internal server error"},
{
"error": "Internal server error",
"errcode": Codes.M_UNKNOWN,
},
send_cors=True
)
return wrapped_request_handler
Expand Down

0 comments on commit 5fc0344

Please sign in to comment.