Skip to content

Commit 5c5202b

Browse files
authored
chore(aws-echo-service): add check for comma (#3912)
1 parent 7b4021b commit 5c5202b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

private/aws-echo-service/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
209209
if (typeof cleanValue === "number") {
210210
cleanValue = cleanValue.toString();
211211
}
212+
if (cleanValue.indexOf(",") >= 0) {
213+
cleanValue = cleanValue.split(",")[0];
214+
}
212215
if (cleanValue.indexOf(":") >= 0) {
213216
cleanValue = cleanValue.split(":")[0];
214217
}

0 commit comments

Comments
 (0)