You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/01/17 23:00:30 UTC

[11/50] git commit: Include the exception class in the #error{}

Include the exception class in the #error{}


Project: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/commit/14c2eb06
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/tree/14c2eb06
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rexi/diff/14c2eb06

Branch: refs/heads/import
Commit: 14c2eb060e54a63655e54745b7fa42408ca0a532
Parents: 8d70ebb
Author: Adam Kocoloski <ad...@cloudant.com>
Authored: Fri Dec 10 13:34:29 2010 -0500
Committer: Adam Kocoloski <ad...@cloudant.com>
Committed: Fri Dec 10 13:34:29 2010 -0500

----------------------------------------------------------------------
 src/rexi_server.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-rexi/blob/14c2eb06/src/rexi_server.erl
----------------------------------------------------------------------
diff --git a/src/rexi_server.erl b/src/rexi_server.erl
index 24b729d..0f2e799 100644
--- a/src/rexi_server.erl
+++ b/src/rexi_server.erl
@@ -82,7 +82,7 @@ handle_info({'DOWN', Ref, process, _, normal}, #st{workers=Workers} = St) ->
 handle_info({'DOWN', Ref, process, Pid, Error}, #st{workers=Workers} = St) ->
     case find_worker(Ref, Workers) of
     {Pid, Ref, From} ->
-        case Error of #error{reason = Reason, stack = Stack} ->
+        case Error of #error{reason = {_Class, Reason}, stack = Stack} ->
             notify_caller(From, {Reason, Stack}),
             St1 = save_error(Error, St),
             {noreply, St1#st{workers = remove_worker(Ref, Workers)}};
@@ -121,7 +121,7 @@ init_p(From, {M,F,A}, Nonce) ->
         error_logger:error_report([{?MODULE, Nonce, {Class, Reason}}, Stack]),
         exit(#error{
             timestamp = now(),
-            reason = Reason,
+            reason = {Class, Reason},
             mfa = {M,F,A},
             nonce = Nonce,
             stack = Stack