Browse files

docs; make the code runnable

  • Loading branch information...
1 parent 8ecccdb commit 004a9e768e5dde4602f7c1f0f9d4235665af8ae8 @aheckmann aheckmann committed Feb 23, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/index.jade
@@ -82,15 +82,15 @@ html(lang='en')
Each document can be saved to the database by calling its [save](/docs/api.html#model_Model-save) method. The first argument to the callback will be an error if any occured.
:js (err, fluffy) {
- if (err) // TODO handle the error
+ if (err) return console.error(err);
Say time goes by and we want to display all the kittens we've seen.
We can access all of the kitten documents through our Kitten [model](/docs/models.html).
Kitten.find(function (err, kittens) {
- if (err) // TODO handle err
+ if (err) return console.error(err);

0 comments on commit 004a9e7

Please sign in to comment.