diff options
author | John Christopher Anderson <jchris@apache.org> | 2009-04-16 06:02:12 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2009-04-16 06:02:12 +0000 |
commit | 47edd9d102446e0b0b661d7cc4a7b46eae6a9a5e (patch) | |
tree | c34a44976387d531487ce430718b97c85a945a2a /share/server/main.js | |
parent | f5298dec9cb5ed763b73e47d4484bc2023a59a55 (diff) |
Baby steps toward better reporting of os_process errors (and JavaScript syntax errors)
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@765479 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/server/main.js')
-rw-r--r-- | share/server/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/server/main.js b/share/server/main.js index 81180678..b8612d41 100644 --- a/share/server/main.js +++ b/share/server/main.js @@ -414,7 +414,8 @@ function runRenderFunction(renderFun, args) { } catch(e) { log("function raised error: "+e.toString()); log("stacktrace: "+e.stack); - respond({error:"render_error",reason:e}); + var errorMessage = "function raised error: "+e.toString()+"\nstacktrace: "+e.stack; + respond({error:"render_error",reason:errorMessage}); } }; |