couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r720389 - /incubator/couchdb/trunk/share/server/main.js
Date Tue, 25 Nov 2008 02:58:46 GMT
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("[]");
           }
         }



Mime
View raw message