Commit
8bc107b42da009093bcd73b1f946454e968b44c3
Exists in
master
and in
11 other branches
angular_poc, backup-7-jan-2016, export-comment-paragraph, login-captcha, new_video_plugin, refactor_with_role, refactor_with_role_scope, remove_profile_cat_icons, staging, theme-brasil-digital-from-staging, travis
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 |