From 364a08a67925c42e987ffaf6a3471680b7b82d10 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 25 Dec 2016 19:30:43 -0400 Subject: - The compiler now shows error messages better when compilation fails. --- luxc/src/lux/compiler.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'luxc') 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)))))) -- cgit v1.2.3