Commit 8bc107b42da009093bcd73b1f946454e968b44c3

Authored by Braulio Bhavamitra
1 parent a13bb596

rails4: correctly handle api errors

see https://github.com/ruby-grape/grape/issues/1151#issuecomment-140062627
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/noosfero/api/api.rb
... ... @@ -13,6 +13,7 @@ module Noosfero
13 13  
14 14 rescue_from :all do |e|
15 15 logger.error e
  16 + error! e.message, 500
16 17 end
17 18  
18 19 @@NOOSFERO_CONF = nil
... ...