1629b2d

Bowmap · bowmap.git · Tickets

Branches > main > 1629b2d > files

Improve error message when writer created via 'apply>' fails

Grahp, 2026-09-29

Commit: 1629b2d822446722d001d15d3935b91acb09033b
Parent: 07b9183

1 changed file:

src/net/bowmap/server/protocol/writers.clj modified (view file)

@@ -66,7 +66,10 @@   "Returns a writer that writes (f x) via 'writer'."   [f writer]   (fn [buf x]-    (writer buf (f x))))+    (try+      (writer buf (f x))+      (catch Exception e+        (throw (ex-info "Failed to call writer with applied function" {:f f :writer writer} e))))))  (def ubyte> byte>) (def short> (integer> 2))