Permalink
Browse files

Use inspected major and minor for easier investigation

  • Loading branch information...
1 parent 2cefd37 commit b90a394d7d291f51ee99ead4f1a142d5998907d1 @ryoqun committed May 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 kernel/common/marshal.rb
View
@@ -993,7 +993,7 @@ def self.load(obj, prc = nil)
end
if major != MAJOR_VERSION or minor > MINOR_VERSION
- raise TypeError, "incompatible marshal file format (can't be read)\n\tformat version #{MAJOR_VERSION}.#{MINOR_VERSION} required; #{major}.#{minor} given"
+ raise TypeError, "incompatible marshal file format (can't be read)\n\tformat version #{MAJOR_VERSION}.#{MINOR_VERSION} required; #{major.inspect}.#{minor.inspect} given"
end
ms.construct

0 comments on commit b90a394

Please sign in to comment.