summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_db.erl
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-05-17 03:54:02 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-05-17 03:54:02 +0000
commitc3d9038534329527ebc11241dc8ddb2ec788c60f (patch)
treed81eeab92c46ec3e01f4970a730975354fc278f2 /src/couchdb/couch_db.erl
parent04bd244c1249fb3dc0581d97e8bbf4cdcd808d7c (diff)
Fixes COUCHDB-41
When a database doesn't exist, it now returns: {"error": "not_found", "reason": "no_db_file"} git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775577 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db.erl')
-rw-r--r--src/couchdb/couch_db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl
index e065ff3b..95a68311 100644
--- a/src/couchdb/couch_db.erl
+++ b/src/couchdb/couch_db.erl
@@ -52,7 +52,7 @@ open_db_file(Filepath, Options) ->
ok = file:rename(Filepath ++ ".compact", Filepath),
{ok, Fd};
{error, enoent} ->
- not_found
+ {not_found, no_db_file}
end;
Error ->
Error