                           (async/send! ch (list "ham" (.getBytes "biscuit") (list "gravy"))
                             {:close? true
                              :on-success #(deliver @client-state :complete!)
-                             :on-error #(deliver @client-state %)})))))]
+                             :on-error (fn [e]
+                                         (println "SEND ERROR send!-a-sequence")
+                                         (.printStackTrace e)
+                                         (deliver @client-state e))}))
+               :on-error (fn [_ e]
+                           (println "CHANNEL ERROR send!-a-sequence")
+                           (.printStackTrace e)))))]
     (replace-handler handler)
     (is (= "hambiscuitgravy" (String. (get-body (cdef-url)))))
     (is (= :complete! (read-string (get-body (str (cdef-url) "state")))))

                          (async/send! ch (.getBytes "biscuit")
                            {:close? true
                             :on-success #(deliver @client-state :complete!)
                             :on-error #(deliver @client-state %)})))))]
    (replace-handler handler)
    (is (= "biscuit" (String. (get-body (cdef-url)))))
    (is (= :complete! (read-string (get-body (str (cdef-url) "state")))))

                          (async/send! ch (io/file (io/resource "public/foo.html"))
                            {:close? true
                             :on-success #(deliver @client-state :complete!)
                             :on-error (fn [e]
                                         (println "SEND ERROR send!-a-file")
                                         (.printStackTrace e)
                                         (deliver @client-state e))}))
               :on-error (fn [_ e]
                           (println "CHANNEL ERROR send!-a-file")
                           (.printStackTrace e)))))]
    (replace-handler handler)
    (is (= (slurp (io/file (io/resource "public/foo.html")))
          (String. (get-body (cdef-url)))))
