Skip to content

Commit 753f7b4

Browse files
committed
test(openapi): type async property errors
1 parent 30c1e10 commit 753f7b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/app/tests/docker-git/openapi-effect-client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const assertOpenApiClientSyncProperty = <PropertyArgs>(property: fc.IProperty<Pr
9191
*/
9292
const assertOpenApiClientProperty = <PropertyArgs>(property: fc.IAsyncProperty<PropertyArgs>) =>
9393
Effect.tryPromise({
94-
catch: (cause) => cause,
94+
catch: (error) => (error instanceof Error ? error : new Error(String(error))),
9595
try: () => fc.assert(property, { numRuns: 25 })
9696
})
9797

0 commit comments

Comments
 (0)