Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add error param to example in README

  • Loading branch information...
commit fa95fda372a212babf61cde06ff603004a023e8c 1 parent aefb3cc
@orlandov orlandov authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  README.md
View
3  README.md
@@ -36,7 +36,8 @@ additional steps.
var ponies = [];
- db.query(sql, [colour], function (pony) {
+ db.query(sql, [colour], function (error, pony) {
+ if (error) throw error;
if (!pony) {
// no more ponies
if (!ponies.length)
Please sign in to comment.
Something went wrong with that request. Please try again.