Browse Source

Merge pull request #67 from algoo/buxx-patch-2

Damien Accorsi 6 years ago
parent
commit
85aaf13595
No account linked to committer's email
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hapic/ext/flask/context.py

+ 2 - 2
hapic/ext/flask/context.py View File

74
         )
74
         )
75
 
75
 
76
         # Check error
76
         # Check error
77
-        dumped = self.default_error_builder.dump(error).data
77
+        dumped = self.default_error_builder.dump(error_content).data
78
         unmarshall = self.default_error_builder.load(dumped)
78
         unmarshall = self.default_error_builder.load(dumped)
79
 
79
 
80
         if unmarshall.errors:
80
         if unmarshall.errors:
85
             )
85
             )
86
         from flask import Response
86
         from flask import Response
87
         return Response(
87
         return Response(
88
-            response=json.dumps(error_content),
88
+            response=json.dumps(dumped),
89
             mimetype='application/json',
89
             mimetype='application/json',
90
             status=int(http_code),
90
             status=int(http_code),
91
         )
91
         )