Skip to content

Commit 0eb858b

Browse files
committed
fix (cloud) non-obvious error message ('handler not found') that occurs at the time of script loading
1 parent f2465c3 commit 0eb858b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/server-code/model/descriptor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class ServerCodeModelDescriptor {
4646
model.definitions.setExplicitly(this.definitions);
4747
model.loadFiles(this.codePath, this.typesFiles.concat([file]));
4848

49+
if (model.errors.length) {
50+
throw new Error(`Error while loading [${model.errors[0].serverCodeFile}]. ${model.errors[0].message}`);
51+
}
52+
4953
return model;
5054
}
5155

0 commit comments

Comments
 (0)