lib/gooddata/helpers/global_helpers_params.rb in gooddata-0.6.53 vs lib/gooddata/helpers/global_helpers_params.rb in gooddata-0.6.54
- old
+ new
@@ -262,12 +262,17 @@
if match =~ /\\\\/
data_params.is_a?(Hash) ? '\\' : '\\\\' # rubocop: disable Metrics/BlockNesting
elsif match =~ /\\\$/
'$'
elsif match =~ /\$\{(\w+)\}/
- val = params["#{$1}"] || raise("The gd_encoded_params parameter contains unknow reference #{$1}") # rubocop: disable Style/PerlBackrefs
- reference_values << val
- val
+ val = params["#{$1}"]
+ if val
+ reference_values << val
+ val
+ else
+ GoodData.logger.warn "Reference '#{$1}' is not found!"
+ match
+ end
end
end
end
end