Skip to content

Commit

Permalink
Add error param to example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandov committed Sep 13, 2010
1 parent aefb3cc commit fa95fda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa95fda

Please sign in to comment.