summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2008-11-25 02:58:45 +0000
committerJohn Christopher Anderson <jchris@apache.org>2008-11-25 02:58:45 +0000
commit6e1ed0a059a64e9dd09e064d158a593817b4a71b (patch)
tree779f3c5a262266e6203e7a666fabca4f9b6512d5 /share
parente44d37584e07fccf739e317cc8b0a6905e2ced56 (diff)
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
Diffstat (limited to 'share')
-rw-r--r--share/server/main.js3
1 files changed, 2 insertions, 1 deletions
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("[]");
}
}