From 9807d8d7d0efd6c257a2642ceeba9a631e00aa68 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Thu, 3 Jul 2008 09:19:40 +0000 Subject: 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 git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@673634 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_util.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3