       component.forwardBrackets[inPort].push 'error'
   return
 
-setupErrorHandler = (component, config, output, failCallback) ->
+setupErrorHandler = (component, config, output) ->
   errors = []
   errorHandler = (e, groups = []) ->
     platform.deprecated 'noflo.helpers.WirePattern error method is deprecated. Please send error to callback instead'


    unless config.async
      # Set up custom error handlers
      errorHandler = setupErrorHandler component, config, output, ->
        return output.done()
      # Synchronous WirePattern, call done here
      func.call component, data, groups, outProxy, null, null, input.scope
      do errorHandler
      output.done()
      return

    # Async WirePattern will call the output.done callback itself
    errorHandler = setupErrorHandler component, config, output, ->
      output.done()
    func.call component, data, groups, outProxy, (err) ->
      do errorHandler
      output.done err

    platform.deprecated 'noflo.helpers.WirePattern fail method is deprecated. Please send error to callback instead'
    errorHandler e, groups if e
    sendErrors()
    output.done()

  sendErrors  = ->
    return unless errors.length
