Browse Source

Merge "Update Fault class to pass error key up"

tags/1.2.0
Zuul 1 week ago
parent
commit
6be279e35b
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      novajoin/base.py

+ 3
- 2
novajoin/base.py View File

@@ -717,9 +717,10 @@ class Fault(webob.exc.HTTPException):
717 717
         fault_name = self._fault_names.get(code, "computeFault")
718 718
         explanation = self.wrapped_exc.explanation
719 719
         fault_data = {
720
-            fault_name: {
720
+            'error': {
721 721
                 'code': code,
722
-                'message': explanation}}
722
+                'message': explanation,
723
+                'fault_name': fault_name}}
723 724
         if code == 413:
724 725
             retry = self.wrapped_exc.headers.get('Retry-After', None)
725 726
             if retry:

Loading…
Cancel
Save