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


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

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

        (response, body) =>
          statusCode = Math.floor(response.statusCode / 100)
          if command.callback || statusCode != 2
            # Unfortunately, we cannot reuse the ResponseParser, since node-xml
            # does not reset itself and offers tno reset function.
            parser = new ResponseParser
            parser.read body, (error, struct) =>
              if error
                @emit "error", error, null, response.statusCode
                return
              if statusCode == 2
                try
