You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2008/07/03 11:19:40 UTC

svn commit: r673634 - /incubator/couchdb/trunk/src/couchdb/couch_util.erl

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 <da...@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.