From 3176cd699359e5dc276f15452dc5ed828b58c628 Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Tue, 1 Apr 2014 14:20:13 -0700 Subject: [PATCH] [ruby/psych] fix error in @dispatch_catch https://github.com/ruby/psych/commit/9df5501fdc --- ext/psych/lib/psych/visitors/yaml_tree.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb index 2229655b78..d7958a8431 100644 --- a/ext/psych/lib/psych/visitors/yaml_tree.rb +++ b/ext/psych/lib/psych/visitors/yaml_tree.rb @@ -73,7 +73,7 @@ module Psych method = respond_to?(method) ? method : h[klass.superclass] - raise(TypeError, "Can't dump #{target.class}") unless method + raise(TypeError, "can't dump #{klass.name}") unless method h[klass] = method end.compare_by_identity