From 0c7743e6054a78d47d27ebb12a834922a111bbba Mon Sep 17 00:00:00 2001 From: William Roe Date: Sat, 21 Feb 2015 22:07:41 +0000 Subject: [PATCH] Ensure sass errors printed visably in red Also include the standard output as it frequently includes crucial information in narrowing down where errors lie in SASS files --- src/cryogen_core/sass.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cryogen_core/sass.clj b/src/cryogen_core/sass.clj index f4255cc..ca31e1e 100644 --- a/src/cryogen_core/sass.clj +++ b/src/cryogen_core/sass.clj @@ -1,6 +1,7 @@ (ns cryogen-core.sass (:require [clojure.java.shell :as shell] [clojure.java.io :as io] + [text-decoration.core :refer :all] [cryogen-core.io :refer [ignore match-re-filter]])) (defmacro sh @@ -63,7 +64,8 @@ the command. Shows you any problems it comes across when compiling. " ;; no problems in sass compilation (println "Successfully compiled:" a-file) ;; else I show the error - (println (:err result)))))) + (println (red (:err result)) + (red (:out result))))))) ;; Else I prompt to install Sass (println "Sass seems not to be installed, but you have scss / sass files in " src-sass