use console.error instead

pull/645/head
Tienson Qin 2020-04-11 22:30:48 +08:00
parent 82ab39e0fe
commit 78592ced5d
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@
(defn p-handle
([p ok-handler]
(p-handle p ok-handler (fn [error] (prn "p-handle error: " error))))
(p-handle p ok-handler (fn [error]
(js/console.error error))))
([p ok-handler error-handler]
(-> p
(p/then (fn [result]