Skip to content

Commit

Permalink
fix(clients): make parseErrorBody async (#3999)
Browse files Browse the repository at this point in the history
* fix(codegen): make parseErrorBody async

* fix(clients): make parseErrorBody async
  • Loading branch information
trivikr authored Sep 29, 2022
1 parent 7cdbd11 commit 2558c93
Show file tree
Hide file tree
Showing 323 changed files with 647 additions and 647 deletions.
4 changes: 2 additions & 2 deletions clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3835,8 +3835,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-account/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-acm-pca/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2982,8 +2982,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-acm/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1948,8 +1948,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8869,8 +8869,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-amp/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2208,8 +2208,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-amplify/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3770,8 +3770,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-amplifybackend/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4068,8 +4068,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3529,8 +3529,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-api-gateway/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12783,8 +12783,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7803,8 +7803,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-app-mesh/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7321,8 +7321,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appconfig/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4827,8 +4827,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appconfigdata/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appflow/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5498,8 +5498,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appintegrations/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1644,8 +1644,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1576,8 +1576,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3162,8 +3162,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2851,8 +2851,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-apprunner/src/protocols/Aws_json1_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3483,8 +3483,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appstream/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7247,8 +7247,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-appsync/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5014,8 +5014,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-athena/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4022,8 +4022,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-auditmanager/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6690,8 +6690,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1250,8 +1250,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-auto-scaling/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9856,8 +9856,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-backup-gateway/src/protocols/Aws_json1_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1979,8 +1979,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-backup/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7463,8 +7463,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-backupstorage/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1174,8 +1174,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-batch/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3558,8 +3558,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3572,8 +3572,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-braket/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1782,8 +1782,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
4 changes: 2 additions & 2 deletions clients/client-budgets/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3136,8 +3136,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2770,8 +2770,8 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
return {};
});

const parseErrorBody = (errorBody: any, context: __SerdeContext): any => {
const value = parseBody(errorBody, context);
const parseErrorBody = async (errorBody: any, context: __SerdeContext) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
Expand Down
Loading

0 comments on commit 2558c93

Please sign in to comment.