diff --git a/blockscore/error.py b/blockscore/error.py index 1863b17..07d8edc 100644 --- a/blockscore/error.py +++ b/blockscore/error.py @@ -21,7 +21,7 @@ def __init__(self, message=None, json_body=None, http_status=None, def __str__(self): return "Status: {0}. Type: {1}, Message: {2}" \ - .format(self.http_status, self.error_type, self.message) + .format(self.http_status, self.error_type, super(BlockscoreError, self).__str__()) # Input could not be validated. @@ -42,7 +42,7 @@ def __init__(self, message=None, json_body=None, param=None, def __str__(self): return "Status: {0}. Type: {1}, Param: {2}, Code: {3}, Message: {4}" \ .format(self.http_status, self.error_type, self.param, - self.error_code, self.message) + self.error_code, super(ValidationError, self).__str__()) # Required parameter missing