You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2009/04/16 01:21:07 UTC

svn commit: r765420 - /couchdb/trunk/src/couchdb/couch_config.erl

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"),