Skip to content

handle-exception not working #186

@chenfisher

Description

@chenfisher

handle-exception isn't being called when there's an exception in an action (as should be according to the docs: http://clojure-liberator.github.io/liberator/doc/handlers.html)

(defresource some-resource
    :allowed-methods [:get]
    :available-media-types ["application/json"]
    :handle-exception (fn [context] {:error (:exception context)})

    :handle-ok (throw (Exception. "bahh")))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions