Skip to content

Commit 2a41a8f

Browse files
authored
JupyterLite: do not fail on validation issues (#219)
1 parent 24510f1 commit 2a41a8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schema/src/model.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ export class JupyterGISModel implements IJupyterGISModel {
163163
const valid = validate(jsonData);
164164

165165
if (!valid) {
166-
let errorMsg = 'File format errors:\n';
166+
let errorMsg = 'JupyterGIS format errors:\n';
167167
for (const error of validate.errors || []) {
168168
errorMsg = `${errorMsg}- ${error.instancePath} ${error.message}\n`;
169169
}
170-
throw Error(errorMsg);
170+
console.warn(errorMsg);
171171
}
172172

173173
this.sharedModel.transact(() => {

0 commit comments

Comments
 (0)