From 828ebb6bbd770ed506d0fbda8417318ceb5a1186 Mon Sep 17 00:00:00 2001 From: Dmytro Milinevskyy Date: Mon, 16 Feb 2015 23:53:01 +0100 Subject: [PATCH] messages: in case of remote exception propagate the real name of the class --- lib/dcell/messages.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dcell/messages.rb b/lib/dcell/messages.rb index 99c291c..53ad430 100644 --- a/lib/dcell/messages.rb +++ b/lib/dcell/messages.rb @@ -124,7 +124,7 @@ def __dispatch(actor) end SuccessResponse.new(@id, @sender[:address], value) rescue => e - ErrorResponse.new(@id, @sender[:address], {:class => RuntimeError.name, :msg => e.to_s}) + ErrorResponse.new(@id, @sender[:address], {:class => e.class.name, :msg => e.to_s}) end def dispatch