Skip to content

Commit 6010061

Browse files
AllanZhengYPsrchase
authored andcommitted
fix(protocol-tests): ser test handler should throw error not object (smithy-lang#327)
1 parent 08169ce commit 6010061

File tree

1 file changed

+4
-2
lines changed
  • smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen

1 file changed

+4
-2
lines changed

smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/protocol-test-stub.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import { Readable } from 'stream';
55
/**
66
* Throws an expected exception that contains the serialized request.
77
*/
8-
class EXPECTED_REQUEST_SERIALIZATION_ERROR {
9-
constructor(readonly request: HttpRequest) {}
8+
class EXPECTED_REQUEST_SERIALIZATION_ERROR extends Error {
9+
constructor(readonly request: HttpRequest) {
10+
super();
11+
}
1012
}
1113

1214
/**

0 commit comments

Comments
 (0)