couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject git commit: Receive the correct error message to proceed upon ignoring a file-open error
Date Wed, 21 Mar 2012 03:38:43 GMT
Updated Branches:
  refs/heads/1.2.x-couch_file [created] 3e5ad086c


Receive the correct error message to proceed upon ignoring a file-open error


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

Branch: refs/heads/1.2.x-couch_file
Commit: 3e5ad086c59af9819f2e93d55f10d61f949002d3
Parents: 6bc8868
Author: Jason Smith (air) <jhs@apache.org>
Authored: Wed Mar 21 10:38:01 2012 +0700
Committer: Jason Smith (air) <jhs@apache.org>
Committed: Wed Mar 21 10:38:01 2012 +0700

----------------------------------------------------------------------
 src/couchdb/couch_file.erl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/3e5ad086/src/couchdb/couch_file.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl
index 7725ddc..73edde3 100644
--- a/src/couchdb/couch_file.erl
+++ b/src/couchdb/couch_file.erl
@@ -53,14 +53,14 @@ open(Filepath, Options) ->
     ignore ->
         % get the error
         receive
-        {Ref, Pid, {error, Reason} = Error} ->
+        {Ref, Pid, Reason} ->
             case process_info(self(), trap_exit) of
             {trap_exit, true} -> receive {'EXIT', Pid, _} -> ok end;
             {trap_exit, false} -> ok
             end,
             ?LOG_ERROR("Error opening file ~s: ~s",
                 [Filepath, file:format_error(Reason)]),
-            Error
+            Reason
         end;
     Error ->
         % We can't say much here, because it could be any kind of error.


Mime
View raw message