                 else
                   @execute()
               else
-                @emit "error", struct, response.statusCode
+                console.log struct
+                @emit "error", null, struct, response.statusCode
           else
             @execute()
 

        (response, body) =>
          statusCode = Math.floor(response.statusCode / 100)
          if command.callback || statusCode != 2
            @parser.read body, (error, struct) =>
              if error
                @emit "error", error, response.statusCode
                return
              if statusCode == 2
                try


  constructor: (@options) ->
    @commands = []

  call: (name, parameters, callback) ->
    @push false, name, parameters, callback
