Преглед на файлове

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();
             }