Skip to content

Commit

Permalink
report detailed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ngot committed Nov 15, 2021
1 parent dd5d075 commit 2b55cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async function compileOas(config: Config) {
try {
await oasValidator.validateInner(openApiObject, config.oasValidatorOptions || {});
} catch (err) {
throw new Error('Invalid Openapi document');
throw new Error('Invalid Openapi document' + err.message);
}

return {
Expand Down

0 comments on commit 2b55cd3

Please sign in to comment.