You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2008/11/25 03:58:46 UTC
svn commit: r720389 - /incubator/couchdb/trunk/share/server/main.js
Author: jchris
Date: Mon Nov 24 18:58:45 2008
New Revision: 720389
URL: http://svn.apache.org/viewvc?rev=720389&view=rev
Log:
Log the offending doc._id when the view function raises an exception.
Modified:
incubator/couchdb/trunk/share/server/main.js
Modified: incubator/couchdb/trunk/share/server/main.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/server/main.js?rev=720389&r1=720388&r2=720389&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/server/main.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/server/main.js [utf-8] Mon Nov 24 18:58:45 2008
@@ -105,7 +105,8 @@
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("[]");
}
}