I expected the async error
to be handled by the error-handler
interceptor (i.e. [OK] Handling error.
).
❯ clj -m dev
Do some work...
[OK] Got a response.
{:async :ok, :sync :ok}
Sync error...
[OK] Handling error.
clojure.lang.ExceptionInfo: java.lang.AssertionError in Interceptor :do-work-sync - Assert failed: Sync error
nil
at clojure.core$ex_info.invokeStatic (core.clj:4739)
clojure.core$ex_info.invoke (core.clj:4739)
io.pedestal.interceptor.chain$throwable__GT_ex_info.invokeStatic (chain.clj:35)
Async error...
Exception in thread "async-dispatch-7" java.lang.AssertionError: Assert failed: Async error
nil
at dev$fn__9857$fn__9870$state_machine__6416__auto____9875$fn__9877.invoke(dev.clj:20)
at dev$fn__9857$fn__9870$state_machine__6416__auto____9875.invoke(dev.clj:17)
at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:973)
at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:972)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:977)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:975)
at dev$fn__9857$fn__9870.invoke(dev.clj:17)
at clojure.lang.AFn.run(AFn.java:22)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)