Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…t if authentication fails.
  • Loading branch information...
commit d52946988645f1acd09db97548fdb6420039dd09 1 parent 55e28d4
@havard authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -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)
{
Please sign in to comment.
Something went wrong with that request. Please try again.