We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177c885 commit 98d4b9cCopy full SHA for 98d4b9c
packages/docusaurus-plugin-openapi-docs/src/openapi/utils/loadAndResolveSpec.ts
@@ -101,7 +101,16 @@ async function resolveJsonRefs(specUrlOrObject: object | string) {
101
});
102
return schema as OpenApiObject;
103
} catch (err: any) {
104
- console.error(chalk.yellow(err.errors[0]?.message ?? err));
+ let errorMsg = "";
105
+
106
+ if (err.errors[0] !== undefined) {
107
+ const error = err.errors[0];
108
+ errorMsg = `Error: [${error.message}] with footprint [${error.footprint}]`;
109
+ } else {
110
+ errorMsg = err;
111
+ }
112
113
+ console.error(chalk.yellow(errorMsg));
114
return;
115
}
116
0 commit comments