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:
parent
0fd16aee80
commit
8ad16f3ccb
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue