Skip to content

Commit

Permalink
use options.messages if is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 14, 2015
1 parent 2e5f011 commit 19aff24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/acho.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Acho.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = class Acho
@messages = do =>
messages = {}
for type of @types
messages[type] = []
messages[type] = options.messages?[type] or []
@[type] = @_printLevelMessage type if type isnt 'line'
messages
@outputType = options.outputType or DEFAULT.OUTPUT_TYPE
Expand Down

0 comments on commit 19aff24

Please sign in to comment.