Permalink
Browse files

Update README.md example to show error message instead of error objec…

…t if authentication fails.
  • Loading branch information...
1 parent 55e28d4 commit d52946988645f1acd09db97548fdb6420039dd09 @havard committed May 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -52,7 +52,7 @@ var server = require('http').createServer(
if (error)
{
res.writeHead(200);
- res.end('Authentication failed: ' + error);
+ res.end('Authentication failed: ' + error.message);
}
else if (!authUrl)
{

0 comments on commit d529469

Please sign in to comment.