Jelajahi Sumber

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 tahun lalu
induk
melakukan
7931464e14
2 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. TEMPAT SAMPAH
      bin/compiled.zip
  2. 3 0
      src/oc.js

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