From c3d9038534329527ebc11241dc8ddb2ec788c60f Mon Sep 17 00:00:00 2001 From: Paul Joseph Davis Date: Sun, 17 May 2009 03:54:02 +0000 Subject: 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 --- src/couchdb/couch_db.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb/couch_db.erl') 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 -- cgit v1.2.3