From 6e1ed0a059a64e9dd09e064d158a593817b4a71b Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Tue, 25 Nov 2008 02:58:45 +0000 Subject: Log the offending doc._id when the view function raises an exception. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@720389 13f79535-47bb-0310-9956-ffa450edef68 --- share/server/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share/server') diff --git a/share/server/main.js b/share/server/main.js index bdb03c60..73fefe19 100644 --- a/share/server/main.js +++ b/share/server/main.js @@ -105,7 +105,8 @@ while (cmd = eval(readline())) { throw {error: "map_runtime_error", reason: "function raised fatal exception"}; } - print(toJSON({log: "function raised exception (" + err + ")"})); + print(toJSON({log: "function raised exception (" + err + + ") with doc._id " + doc._id})); buf.push("[]"); } } -- cgit v1.2.3