Update client side wrapper example

This commit is contained in:
Michiel Borkent 2020-05-20 23:34:32 +02:00
parent 9d4b853e8f
commit 815babf5c0

View file

@ -335,11 +335,10 @@ as client side code. An example from the
"pod.babashka.filewatcher" "pod.babashka.filewatcher"
'pod.babashka.filewatcher/watch* 'pod.babashka.filewatcher/watch*
[path opts] [path opts]
{:handlers {:success cb {:handlers {:success (fn [event] (cb (update event :type keyword)))
:error (fn [{:keys [:ex-message :ex-data]}] :error (fn [{:keys [:ex-message :ex-data]}]
(binding [*out* *err*] (binding [*out* *err*]
(println "ERROR:" ex-message))) (println "ERROR:" ex-message)))}})
:done (fn [])}})
nil)) nil))
``` ```