Skip to content
Browse files

avoid undefined emails doc

  • Loading branch information...
1 parent 31901e9 commit abbacda529c030670cbfd1396aec48c2935c6416 @zaach zaach committed Dec 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/alpha_dump.js
View
2 scripts/alpha_dump.js
@@ -10,7 +10,7 @@ var options = {
couchbase.connect(options, function(err, bucket) {
bucket.get('alpha_users', function (err, doc) {
console.log('Alpha User Emails\n-----------------');
- console.log(doc.emails.join('\n'));
+ if (doc && doc.emails) console.log(doc.emails.join('\n'));
process.exit();
});
});

0 comments on commit abbacda

Please sign in to comment.
Something went wrong with that request. Please try again.