Print network errors
This commit is contained in:
parent
e6c640774f
commit
9826d49e34
@ -14,7 +14,8 @@
|
||||
"hitsPerPage" 1000
|
||||
"restrictSearchableAttributes" "url"}
|
||||
:handler (fn [res] (go (>! response-chan res)))
|
||||
:error-handler (fn [err] (go (>! response-chan err)))})
|
||||
:error-handler (fn [err] (js/console.error "Error fetching HN stories:"
|
||||
(clj->js err)))})
|
||||
response-chan))
|
||||
|
||||
(defn filter-response
|
||||
|
Loading…
Reference in New Issue
Block a user