summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-04-15 23:21:07 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-04-15 23:21:07 +0000
commitf5298dec9cb5ed763b73e47d4484bc2023a59a55 (patch)
tree6e1876a174cd97ffd742930f0b1ab8df06f7fb36 /src/couchdb
parentfe46473849e51934063c0e3216e796410d5019bc (diff)
change error message from list to binary string
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@765420 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_config.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/couchdb/couch_config.erl b/src/couchdb/couch_config.erl
index 50768ac8..d5b93201 100644
--- a/src/couchdb/couch_config.erl
+++ b/src/couchdb/couch_config.erl
@@ -118,11 +118,11 @@ load_ini_file(IniFile) ->
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"),