From 2b55cd35357eb9abb02a1a8049dc6a527c03362e Mon Sep 17 00:00:00 2001 From: ngot Date: Tue, 16 Nov 2021 10:42:54 +1100 Subject: [PATCH] report detailed error message --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c597197..3647b65 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 {