From 4a9b1bf48f803dc4ad32bae1b48912aa13dd4209 Mon Sep 17 00:00:00 2001 From: Toby Crawley Date: Tue, 7 Apr 2015 17:02:11 -0400 Subject: [PATCH] Simplify default :on-error. --- web/src/immutant/web/async.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/immutant/web/async.clj b/web/src/immutant/web/async.clj index 9862aacd..11fa8d03 100644 --- a/web/src/immutant/web/async.clj +++ b/web/src/immutant/web/async.clj @@ -225,7 +225,7 @@ * :on-error - `(fn [throwable] ...)` - Called when an error occurs on the send. If the error requires the channel to be closed, the [[as-channel]] :on-close callback will also be invoked. If this callback throws an exception, it will be - reported to the [[as-channel]] :on-error callback [`#(when % (throw %))`] + reported to the [[as-channel]] :on-error callback [`#(throw %)`] Returns nil if the channel is closed when the send is initiated, true otherwise. If the channel is already closed, :on-success won't be