From 815babf5c04a9af2a95c49a4a51418742c7f401a Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Wed, 20 May 2020 23:34:32 +0200 Subject: [PATCH] Update client side wrapper example --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 398a930..6e9b145 100644 --- a/README.md +++ b/README.md @@ -335,11 +335,10 @@ as client side code. An example from the "pod.babashka.filewatcher" 'pod.babashka.filewatcher/watch* [path opts] - {:handlers {:success cb + {:handlers {:success (fn [event] (cb (update event :type keyword))) :error (fn [{:keys [:ex-message :ex-data]}] (binding [*out* *err*] - (println "ERROR:" ex-message))) - :done (fn [])}}) + (println "ERROR:" ex-message)))}}) nil)) ```