Permalink
Browse files

Update example code

  • Loading branch information...
1 parent 91fa1ce commit b0cb44c9df95f1d17c126bbb1552c142c2a4d6b0 @danmactough committed Jun 14, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 examples/simple.js
View
3 examples/simple.js
@@ -9,6 +9,9 @@ var FeedParser = require(__dirname+'/..')
, feed = __dirname+'/../test/feeds/rss2sample.xml';
fs.createReadStream(feed)
+ .on('error', function (error) {
+ console.error(error);
+ })
.pipe(new FeedParser())
.on('error', function (error) {
console.error(error);

0 comments on commit b0cb44c

Please sign in to comment.