Output exception details to STDERR

When an exception occurs when running a check, output debugging details
about the exception to STDERR.

The Code Climate kitbit engine wraps kibit and emits issues in JSON
for each check on STDOUT. Any unexpected content on STDOUT causes the
engine run to fail as debugging information is expected on STDERR.
This small patch moves the output of debugging information to to
STDERR.
This commit is contained in:
John Pignata 2016-02-27 12:15:19 -05:00
parent 0fd16aee80
commit 8ad16f3ccb

View file

@ -40,8 +40,9 @@
cli-reporter)
:rules (or rules all-rules))
(catch Exception e
(println "Check failed -- skipping rest of file")
(println (.getMessage e)))))
(binding [*out* *err*]
(println "Check failed -- skipping rest of file")
(println (.getMessage e))))))
source-files)))
(defn external-run