File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
3
## [ Unreleased]
4
+ ### Changed
5
+ - Error Handling - Display an explicit error message if the envSecret is detected as missing or unknown during data a API request.
4
6
5
7
## RELEASE 3.0.0-beta.16 - 2019-03-29
6
8
### Fixed
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ def reject_unauthorized_ip
20
20
end
21
21
end
22
22
rescue ForestLiana ::Errors ::ExpectedError => exception
23
- exception . display_error
24
23
error_data = JSONAPI ::Serializer . serialize_errors ( [ {
25
24
status : exception . error_code ,
26
25
detail : exception . message
Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ def self.retrieve
15
15
@@ip_whitelist_rules = ip_whitelist_data [ 'rules' ]
16
16
true
17
17
else
18
- raise "Cannot retrieve the data from the Forest server. Forest API returned an #{ Errors ::HTTPErrorHelper . format ( response ) } "
18
+ FOREST_LOGGER . error 'An error occured while retrieving your IP whitelist. Your Forest ' +
19
+ 'env_secret seems to be missing or unknown. Can you check that you properly set your ' +
20
+ 'Forest env_secret in the forest_liana initializer?'
21
+ false
19
22
end
20
23
rescue => exception
21
24
FOREST_LOGGER . error 'Cannot retrieve the IP Whitelist from the Forest server.'
You can’t perform that action at this time.
0 commit comments