couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r673634 - /incubator/couchdb/trunk/src/couchdb/couch_util.erl
Date Thu, 03 Jul 2008 09:19:40 GMT
Author: jan
Date: Thu Jul  3 02:19:40 2008
New Revision: 673634

URL: http://svn.apache.org/viewvc?rev=673634&view=rev
Log:
Improve error message. If the couch_erl_driver.so is no good
for some reason (linking e.g.) you get something along the lines
of 
{"init terminating in do_boot","Driver is an inappropriate Mach-O file"}
instead of
{"init terminating in do_boot",{error,{open_error,-12}}}
Patch by Dale Johnson <dale.johnson@gmail.com>

Modified:
    incubator/couchdb/trunk/src/couchdb/couch_util.erl

Modified: incubator/couchdb/trunk/src/couchdb/couch_util.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_util.erl?rev=673634&r1=673633&r2=673634&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_util.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_util.erl Thu Jul  3 02:19:40 2008
@@ -28,7 +28,7 @@
     case erl_ddll:load_driver(LibDir, "couch_erl_driver") of
     ok -> ok;
     {error, already_loaded} -> ok;
-    Error -> exit(Error)
+    {error, Error} -> exit(erl_ddll:format_error(Error))
     end.
     
     



Mime
View raw message