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 f2465c3 commit 0eb858bCopy full SHA for 0eb858b
lib/server-code/model/descriptor.js
@@ -46,6 +46,10 @@ class ServerCodeModelDescriptor {
46
model.definitions.setExplicitly(this.definitions);
47
model.loadFiles(this.codePath, this.typesFiles.concat([file]));
48
49
+ if (model.errors.length) {
50
+ throw new Error(`Error while loading [${model.errors[0].serverCodeFile}]. ${model.errors[0].message}`);
51
+ }
52
+
53
return model;
54
}
55
0 commit comments