Add back error_message
and error_type
for backwards-compatibility
This commit is contained in:
parent
7b44beb1fd
commit
e1b3312495
2 changed files with 35 additions and 25 deletions
|
@ -67,7 +67,9 @@ class ApiException(Exception):
|
|||
|
||||
if self.error_description is not None:
|
||||
rv['detail'] = self.error_description
|
||||
rv['error_message'] = self.error_description # TODO: deprecate
|
||||
|
||||
rv['error_type'] = self.error_type.value # TODO: deprecate
|
||||
rv['title'] = self.error_type.value
|
||||
rv['type'] = url_for('error', error_type=self.error_type.value, _external=True)
|
||||
rv['status'] = self.status_code
|
||||
|
|
Reference in a new issue