 
   errorHandler: (call, task, machine)->
 
-    ComputeErrors = {
-      "TimeoutError", "KiteError", Pending: "107"
-    }
-
-    { timeout }   = ComputeController
+    { timeout, Error } = ComputeController
 
     retryIfNeeded = KD.utils.throttle 500, (task, machine)=>
 


      switch err.name

        when ComputeErrors.TimeoutError

          safeToSuspend = task is 'info'
          retryIfNeeded task, machine
          info "Cancelling... #{task} ..."
          call.cancel()

        when ComputeErrors.KiteError

          if err.code is ComputeErrors.Pending
            retried = retryIfNeeded task, machine
            safeToSuspend = yes
          else

  @providers = KD.config.providers

  @timeout = 30000

  @Error = {
    'TimeoutError', 'KiteError',
    Pending: '107', NotVerified: '500'
  }

  constructor:->

