Skip to content

Commit

Permalink
fix: log error before fatal (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
gangsthub authored and manniL committed Jan 7, 2019
1 parent 46763d0 commit 2a120a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ async function createFeed (feedOptions, callback) {
await feedOptions.create.call(this, feed)
feed.options = Object.assign({ generator: 'https://github.com/nuxt-community/feed-module' }, feed.options)
} catch (err) /* istanbul ignore next */ {
logger.fatal('Error while executing feed creation function')
logger.error(err)
logger.fatal('Error while executing feed creation function')
}
return callback(null, feed[feedOptions.type](), feedOptions.cacheTime)
}
Expand Down

0 comments on commit 2a120a5

Please sign in to comment.