couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r765420 - /couchdb/trunk/src/couchdb/couch_config.erl
Date Wed, 15 Apr 2009 23:21:07 GMT
Author: jchris
Date: Wed Apr 15 23:21:07 2009
New Revision: 765420

URL: http://svn.apache.org/viewvc?rev=765420&view=rev
Log:
change error message from list to binary string

Modified:
    couchdb/trunk/src/couchdb/couch_config.erl

Modified: couchdb/trunk/src/couchdb/couch_config.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_config.erl?rev=765420&r1=765419&r2=765420&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_config.erl (original)
+++ couchdb/trunk/src/couchdb/couch_config.erl Wed Apr 15 23:21:07 2009
@@ -118,11 +118,11 @@
     IniBin =
     case file:read_file(IniFilename) of
         {ok, IniBin0} ->
-           IniBin0;
+            IniBin0;
         {error, enoent} ->
-           Msg = io_lib:format("Couldn't find server configuration file ~s.", [IniFilename]),
-           ?LOG_ERROR("~s~n", [Msg]),
-           throw({startup_error, Msg})
+            Msg = ?l2b(io_lib:format("Couldn't find server configuration file ~s.", [IniFilename])),
+            ?LOG_ERROR("~s~n", [Msg]),
+            throw({startup_error, Msg})
     end,
 
     {ok, Lines} = regexp:split(binary_to_list(IniBin), "\r\n|\n|\r|\032"),



Mime
View raw message