Skip to content

Commit

Permalink
fixing error response in endpoints sample.
Browse files Browse the repository at this point in the history
Change-Id: I4a123cc8da805b2c4b61c02ad46196af8ca16bc8
  • Loading branch information
Jon Wayne Parrott committed May 2, 2016
1 parent 637a9fd commit ffc65cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managed_vms/endpoints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def auth_info_google_id_token():
def unexpected_error(e):
"""Handle exceptions by returning swagger-compliant json."""
response = jsonify({
'error': http_client.INTERNAL_SERVER_ERROR,
'code': http_client.INTERNAL_SERVER_ERROR,
'message': 'Exception: {}'.format(e)})
response.status_code = http_client.INTERNAL_SERVER_ERROR
return response
Expand Down

0 comments on commit ffc65cf

Please sign in to comment.