Skip to content

Commit ebb74c7

Browse files
Azukavmasek
authored andcommitted
fix(generator): Expose error from spec validation
The error from validating the spec is suppressed. In my case, it was due to an extra path parameter.
1 parent 881725c commit ebb74c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function generateAPIClient(options: GenOptions): Promise<string[]>
2929
}
3030
});
3131
} catch (error) {
32-
throw new Error(`Provided swagger file "${swaggerFilePath}" is invalid`);
32+
throw new Error(`Provided swagger file "${swaggerFilePath}" is invalid: ${error}`);
3333
}
3434

3535
const swaggerDef: Swagger = await swaggerFile(swaggerFilePath);

0 commit comments

Comments
 (0)