summaryrefslogtreecommitdiff
path: root/lib/drb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-12 11:07:29 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-12 11:07:29 +0000
commit6f00a0a682f5c5127bfb77a156b215b9a91eda31 (patch)
tree03f564983080872877d911b246d5a58e94478d03 /lib/drb
parent1a33c544b74cbe91bd5e90318db6809a257c368e (diff)
backported from CVS_HEAD
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb')
-rw-r--r--lib/drb/drb.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index e92131f1d8..f3ed778da2 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -461,7 +461,7 @@ module DRb
# when the unmarshalling failed. It is used to determine the
# name of the unmarshalled object.
def initialize(err, buf)
- case err
+ case err.to_s
when /uninitialized constant (\S+)/
@name = $1
when /undefined class\/module (\S+)/
@@ -573,7 +573,7 @@ module DRb
rescue
raise(DRbConnError, $!.message, $!.backtrace)
end
- raise(DRbConnError, 'connection closed') if sz.nil?
+ raise(DRbConnError, 'connection closed') if str.nil?
raise(DRbConnError, 'premature marshal format(can\'t read)') if str.size < sz
begin
Marshal::load(str)