Commit
8bc107b42da009093bcd73b1f946454e968b44c3
Exists in
staging
and in
19 other branches
angular_poc, api-homepage, api_visitor, caching-rails4, captcha_serpro_plugin, comment_paragraph_api, comments_api_reply, environment-api, export-comment-paragraph, fix_multitenancy, fix_profile_wall, fix_string_downcase_and_upcase, fix_upload_files_on_development_environment, json_cookie_serializer, login-captcha, master, new_security, new_video_plugin, production
rails4: correctly handle api errors
see https://github.com/ruby-grape/grape/issues/1151#issuecomment-140062627
|
| @@ -13,6 +13,7 @@ module Noosfero |
| @@ -13,6 +13,7 @@ module Noosfero |
|
13
| |
13
| |
|
14
| rescue_from :all do |e| |
14
| rescue_from :all do |e| |
|
15
| logger.error e |
15
| logger.error e |
|
| |
16
| + error! e.message, 500 |
|
16
| end |
17
| end |
|
17
| |
18
| |
|
18
| @@NOOSFERO_CONF = nil |
19
| @@NOOSFERO_CONF = nil |