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 7261ca1 commit 84e8161Copy full SHA for 84e8161
packages/schema/src/model.ts
@@ -149,7 +149,11 @@ export class JupyterCadModel implements IJupyterCadModel {
149
const valid = validate(jsonData);
150
151
if (!valid) {
152
- console.warn('JupyterCAD File format invalid', data);
+ let errorMsg = 'JupyterCAD File format invalid:\n';
153
+ for (const error of validate.errors || []) {
154
+ errorMsg = `${errorMsg}- ${error.instancePath} ${error.message}\n`;
155
+ }
156
+ console.warn(errorMsg);
157
}
158
159
this.sharedModel.transact(() => {
0 commit comments