   cljs.repl/IPrintStacktrace
   (-print-stacktrace [repl-env stacktrace error build-options]
     (doseq [{:keys [function file url line column] :as line-tr}
-            (filter valid-stack-line? (cljs.repl/mapped-stacktrace stacktrace build-options))]
-      (repl-println "\t" (str function " (" (str (or url file)) ":" line ":" column ")")))))
+            (filter valid-stack-line?
+                    (cljs.repl/mapped-stacktrace (clean-stacktrace stacktrace)
+                                                 build-options))]
+      
+      (println "  " (str function " (" (str (or url file)) ":" line ":" column ")")))
+    (flush)))
 
 (defn repl-env
   ([figwheel-server {:keys [id build-options] :as build}]

        {:host host}
        {:host host :port (Integer/parseInt port)})
      {})))

(defrecord FigwheelEnv [figwheel-server]
  cljs.repl/IJavaScriptEnv


(defn warning-handler [form opts]
  (fn [warning-type env extra]
    (when-let [warning-data (cljs-ex/extract-warning-data warning-type env extra)]
      (debug-prn (with-color
                   (cljs-ex/format-warning (assoc warning-data
                                                  :source-form form
                                                  :environment :repl)))))))

(defn catch-warnings-and-exceptions-eval-cljs
  ([repl-env env form]
