Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes COUCHDB-311

Returns an _external error as a binary.



git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@766353 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 6adbab8f3fadda652844c8db7ca30d382ad0fa5a 1 parent 5442bdb
@davisp davisp authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  THANKS
  2. +2 −2 src/couchdb/couch_external_manager.erl
View
1  THANKS
@@ -25,5 +25,6 @@ suggesting improvements or submitting changes. Some of these people are:
* Eric Casteleijn <eric.casteleijn@canonical.com>
* Maarten Thibaut <mthibaut@cisco.com>
* Florian Ebeling <florian.ebeling@gmail.com>
+ * Volker Mische <volker.mische@gmail.com>
For a list of authors see the `AUTHORS` file.
View
4 src/couchdb/couch_external_manager.erl
@@ -53,9 +53,9 @@ handle_call({get, UrlName}, _From, Handlers) ->
[] ->
case couch_config:get("external", UrlName, nil) of
nil ->
- Mesg = lists:flatten(
+ Msg = lists:flatten(
io_lib:format("No server configured for ~p.", [UrlName])),
- {reply, {error, {unknown_external_server, Mesg}}, Handlers};
+ {reply, {error, {unknown_external_server, ?l2b(Msg)}}, Handlers};
Command ->
{ok, NewPid} = couch_external_server:start_link(UrlName, Command),
true = ets:insert(Handlers, {UrlName, NewPid}),
Please sign in to comment.
Something went wrong with that request. Please try again.