From 88cddc0fe56a7d23570ce108bcf3f02e446edd59 Mon Sep 17 00:00:00 2001
From: Konrad Mrożek <kmrozek@comscore.com>
Date: Thu, 31 Aug 2023 10:20:02 +0000
Subject: [PATCH] Treat malli errors as exceptions

---
 compiler/clojure-test.vim |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/compiler/clojure-test.vim b/compiler/clojure-test.vim
index 02ea189..d7c4c02 100644
--- a/compiler/clojure-test.vim
+++ b/compiler/clojure-test.vim
@@ -9,9 +9,7 @@
     command -nargs=* CompilerSet setlocal <args>
 endif
 
-echomsg expand('<sfile>:p:h:h')
+var clojure_test_deps = "'{:aliases {:clojure-test-vim {:extra-paths [\".cache/classes\"] :extra-deps {mrroman/clojure-test.vim {:local/root \"" .. expand('<sfile>:p:h:h') .. "/clojure\"}}}}}'"
 
-var clojure_test_deps = "'{:aliases {:clojure-test-vim {:extra-paths [\"classes\"] :extra-deps {mrroman/clojure-test.vim {:local/root \"" .. expand('<sfile>:p:h:h') .. "/clojure\"}}}}}'"
-
-execute 'CompilerSet makeprg=clojure\ -Sdeps\ ' .. escape(clojure_test_deps, ' \|"') .. '\ -Mtest:clojure-test-vim\ -m\ test-runner'
-CompilerSet errorformat&
+execute 'CompilerSet makeprg=clojure\ -Sdeps\ ' .. escape(clojure_test_deps, ' \|"') .. '\ -Mtest:clojure-test-vim\ --report\ stderr\ -m\ test-runner\ -test-file'
+CompilerSet errorformat=%EERROR:%f:%l:%m,%CERROR-CONTINUE:%m,%WFAIL:%f:%l:%m,%CFAIL-CONTINUE:%m

--
Gitblit v1.9.3