Commit
8bc107b42da009093bcd73b1f946454e968b44c3
Exists in
master
and in
20 other branches
add_member_task_reject_details, admin_visible_profile, community_notifications, fix_comments_pagination, fix_rails4_organization_ratings, fix_sign_up_form, follow_step_fix, forum_topic_creation, mirror_block_improvements, multi_env_on_remote_user, new_security, organization_ratings_improvements, profile_api_improvements, ratings_minor_fixes, send_email_to_admins, stable-spb-1.4, stable-spb-1.5, suggest_rejected_value, web_steps_improvements, xss_terminate_custom_options
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 |