Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `error!' for #<Grape::Middleware::Error:0x007ffdfd9d3840> #982

Closed
TangMonk opened this issue Apr 10, 2015 · 1 comment
Closed

Comments

@TangMonk
Copy link

require 'grape-swagger'

module CarWash
  class Root < Grape::API
    rescue_from :all do |e|
      error!("rescued from #{e.class.name}")
    end
    mount V1::Api
  end
end

I want to catch all unexpected error.

But there is an error:

image

@dblock
Copy link
Member

dblock commented Apr 10, 2015

This hasn't shipped yet, was added in #974. Try HEAD.

@dblock dblock closed this as completed Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants