Permalink
Browse files

preemptive fix

  • Loading branch information...
contra committed Apr 1, 2012
1 parent dad2f51 commit 07d9c1a8e370d5050d55ff48a85d0d74ecf06942
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/command.coffee
View
@@ -43,8 +43,8 @@ module.exports =
res = if Array.isArray res then res else [res]
for val in res
log.info val unless val? and val.type?
- log.error val.message if val.type is 'stderr'
- log.info val.message if val.type is 'stdout'
+ log.error val.message if val? and val.type is 'stderr'
+ log.info val.message if val? and val.type is 'stdout'
cb null, res
async.mapSeries tasks, runTask, -> log.info "Tasks completed!"

0 comments on commit 07d9c1a

Please sign in to comment.