Skip to content

Commit

Permalink
log to console when the js server finds a call error
Browse files Browse the repository at this point in the history
  • Loading branch information
nicferrier committed Apr 27, 2012
1 parent 6a4fcf3 commit 6499ecd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ghostweb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 6499ecd

Please sign in to comment.