Commit fa95fda3 by Orlando Vazquez

Add error param to example in README

parent aefb3cc4
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment