summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2008-07-03 09:19:40 +0000
committerJan Lehnardt <jan@apache.org>2008-07-03 09:19:40 +0000
commit9807d8d7d0efd6c257a2642ceeba9a631e00aa68 (patch)
treea8190c3de52526d09fcdde441268dfdec4c35185 /src
parent479ea7ee4d737f29d1797a8dbd564b5210628b65 (diff)
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> git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@673634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_util.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_util.erl b/src/couchdb/couch_util.erl
index 81234c2b..1d058005 100644
--- a/src/couchdb/couch_util.erl
+++ b/src/couchdb/couch_util.erl
@@ -28,7 +28,7 @@ start_driver(LibDir) ->
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.