Permalink
Browse files

log to console when the js server finds a call error

  • Loading branch information...
1 parent 6a4fcf3 commit 6499ecdeacd0be1157ba39d00084c81d2b8fcc49 @nicferrier committed Apr 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 ghostweb.js
View
@@ -103,6 +103,7 @@ try {
var retval = page.evaluate(f);
if (retval["type"] == 'error') {
+ console.log("server: call error " + request.headers.commandarg + " => " + retval.name + ":" + retval.message);
response.statusCode = 400;
response.write(retval.name + ":" + retval.message + "\n");
}

0 comments on commit 6499ecd

Please sign in to comment.