                   (repl/print-doc (repl-special-doc (second expression-form)))
                   (repl/print-doc
                     (let [sym (second expression-form)]
-                          (with-compiler-env st (resolve env sym))))))
+                          (with-compiler-env st (resolve env sym)))))
+            pst (let [sym (or (-> expression-form second second) '*e)
+                      err (with-compiler-env st (resolve env sym))]
+                  (print-error err)))
           (prn nil))
         (try
           (cljs/eval-str

    require-macros {:arglists ([& args])
                    :doc      "Similar to the require REPL special function but\n  only for macros."}
    doc            {:arglists ([name])
                    :doc      "Prints documentation for a var or special form given its name"}})

(defn- repl-special-doc [name-symbol]
  (assoc (repl-special-doc-map name-symbol)

(defn ns-form? [form]
  (and (seq? form) (= 'ns (first form))))

(def repl-specials '#{in-ns require require-macros doc pst})

(defn repl-special? [form]
  (and (seq? form) (repl-specials (first form))))
