MixinLabs / meteor-wisp

Meteor Smart-Package for wisp - Clojure like LISP language.
5 stars 3 forks source link

wispCompiler.compile does not throw error if any #5

Open iovdin opened 8 years ago

iovdin commented 8 years ago
  try {
    output = wispCompiler.compile(source, { sourceMaps: true });
  } catch (e) {
    throw new Error(
          "there is error" + compileStep.inputPath + ':' +
          (e.location ? (e.location.first_line + ': ') : ' ') +
          e.message
        );
  }

If wisp code is invalid wispCompiler.compile does not throw error (keeping it in output.error) and thus no notification shown in console

Generated js code is empty