Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/warlock/flow.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ Flow::run = () ->
@queues.post.push @stream
@stream = @_mergeArrayOfStreams @queues.post

if @merge?
if @options.passive
if @merge? or @options.dest?
warlock.fatal "[#{@name}] Cannot be passive, yet have a destination."
return @stream

else if @merge?
# FIXME(jdm): We need to check that the flow exists first; if an invalid flow is defined, it
# will actually be created here and never run, of course!
warlock.verbose.log "[#{@name}] Merging with #{@merge.target}@#{@merge.queue}"
Expand Down