summaryrefslogtreecommitdiff
path: root/lib/psych/exception.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2021-05-21 11:38:55 -0700
committerGitHub <noreply@github.com>2021-05-21 11:38:55 -0700
commit5d8b7fb0f8393e8ce1aed7642f509818e4e5c211 (patch)
treeb879281965f51d4f2224a70b2b34f0887c1e199e /lib/psych/exception.rb
parent38e4b5115f170ae7d79debfc9219331a6d52babe (diff)
parent441958396f40d526a62e564761d2bad534465a5b (diff)
downloadpsych-5d8b7fb0f8393e8ce1aed7642f509818e4e5c211.zip
Merge pull request #495 from Shopify/safe-dumpHEADmaster
Implement YAML.safe_dump to make safe_load more usable.
Diffstat (limited to 'lib/psych/exception.rb')
-rw-r--r--lib/psych/exception.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/psych/exception.rb b/lib/psych/exception.rb
index fac0c42..f473b95 100644
--- a/lib/psych/exception.rb
+++ b/lib/psych/exception.rb
@@ -7,8 +7,8 @@ module Psych
end
class DisallowedClass < Exception
- def initialize klass_name
- super "Tried to load unspecified class: #{klass_name}"
+ def initialize action, klass_name
+ super "Tried to #{action} unspecified class: #{klass_name}"
end
end
end