diff options
Diffstat (limited to 'new-luxc/source/program.lux')
-rw-r--r-- | new-luxc/source/program.lux | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/new-luxc/source/program.lux b/new-luxc/source/program.lux index 3e94c7521..e660b4158 100644 --- a/new-luxc/source/program.lux +++ b/new-luxc/source/program.lux @@ -4,7 +4,8 @@ ["p" parser]) (concurrency ["P" promise] ["T" task]) - (data ["e" error]) + (data ["e" error] + text/format) [io #- run] [cli #+ program: CLI]) (luxc ["&;" generator])) @@ -45,9 +46,10 @@ [?output action] (case ?output (#e;Error error) - (error! error) + (exec (log! (format "\n" + "Compilation failed:" "\n" + error "\n")) + (_lux_proc ["io" "exit"] [1])) (#e;Success output) (wrap output)))) - - |