We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 826d33a commit 2b071f0Copy full SHA for 2b071f0
lib/puppet-lint/checks.rb
@@ -84,7 +84,7 @@ def run(fileinfo, data)
84
}
85
86
@problems
87
- rescue => e
+ rescue StandardError => e
88
$stdout.puts <<-END.gsub(%r{^ {6}}, '')
89
Whoops! It looks like puppet-lint has encountered an error that it doesn't
90
know how to handle. Please open an issue at https://github.com/puppetlabs/puppet-lint
lib/puppet-lint/monkeypatches.rb
@@ -1,6 +1,6 @@
1
begin
2
'%{test}' % { test: 'replaced' } == 'replaced'
3
-rescue
+rescue StandardError
4
# monkeypatch String#% into Ruby 1.8.7
5
class String
6
Percent = instance_method(:%) unless defined?(Percent)
0 commit comments