소스 검색

Handle module reading/compilation errors separately from IMPORT errors

Report both low-level details ("file cannot be read" etc) and general IMPORT error (line <N>: module(s) not found: <MODULE>).
Vladislav Folts 4 년 전
부모
커밋
7931464e14
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. BIN
      bin/compiled.zip
  2. 3 0
      src/oc.js

BIN
bin/compiled.zip


+ 3 - 0
src/oc.js

@@ -101,6 +101,9 @@ var ModuleResolver = Class.extend({
             try {
                 this.compile(this.__moduleReader(name));
             }
+            catch (x) {
+                this.__handleErrors(x + "");
+            }
             finally {
                 this.__detectRecursion.pop();
             }