Permalink
Browse files

Add error param to example in README

  • Loading branch information...
1 parent aefb3cc commit fa95fda372a212babf61cde06ff603004a023e8c @orlandov committed Sep 13, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
@@ -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)

0 comments on commit fa95fda

Please sign in to comment.