lib/gooddata/helpers/global_helpers_params.rb in gooddata-0.6.46 vs lib/gooddata/helpers/global_helpers_params.rb in gooddata-0.6.47
- old
+ new
@@ -68,10 +68,10 @@
begin
parsed_data_params = JSON.parse(data_params)
parsed_hidden_data_params = JSON.parse(hidden_data_params)
rescue JSON::ParserError => e
- raise e.class, "Error reading json from '#{key}' or '#{hidden_key}' in params #{params}\n #{e.message}"
+ raise e.class, "Error reading json from '#{key}' or '#{hidden_key}', reason: #{e.message}"
end
# Add the nil on ENCODED_HIDDEN_PARAMS_KEY
# if the data was retrieved from API You will not have the actual values so encode -> decode is not losless. The nil on the key prevents the server from deleting the key
parsed_hidden_data_params[ENCODED_HIDDEN_PARAMS_KEY] = nil unless parsed_hidden_data_params.empty?