diff options
author | Eduardo Julian | 2016-12-25 19:30:43 -0400 |
---|---|---|
committer | Eduardo Julian | 2016-12-25 19:30:43 -0400 |
commit | 364a08a67925c42e987ffaf6a3471680b7b82d10 (patch) | |
tree | 67a0808a025d915bfec6e8268ccd898d764a4ff7 /luxc | |
parent | 83140c8ff4e91d622da1c549daad22f7c368bc8f (diff) |
- The compiler now shows error messages better when compilation fails.
Diffstat (limited to '')
-rw-r--r-- | luxc/src/lux/compiler.clj | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/luxc/src/lux/compiler.clj b/luxc/src/lux/compiler.clj index d8c5e4571..1c04df819 100644 --- a/luxc/src/lux/compiler.clj +++ b/luxc/src/lux/compiler.clj @@ -265,4 +265,5 @@ (&&cache/clean ?state)) (&/$Left ?message) - (assert false ?message))))) + (do (&/|log! (str "Compilation failed:\n" ?message)) + (System/exit 1)))))) |