Skip to content

Commit

Permalink
Return a proper response when the request is too big
Browse files Browse the repository at this point in the history
  • Loading branch information
vheon committed May 7, 2016
1 parent 141c97b commit 0e01c0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ycmd/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def DebugInfo():


# The type of the param is Bottle.HTTPError
@app.error( http.client.REQUEST_ENTITY_TOO_LARGE )
@app.error( http.client.INTERNAL_SERVER_ERROR )
def ErrorHandler( httperror ):
body = _JsonResponse( BuildExceptionResponse( httperror.exception,
Expand Down

0 comments on commit 0e01c0f

Please sign in to comment.