     @connection.createAnswer ((answer) =>
       @connection.setLocalDescription new WebRTC.RTCSessionDescription(answer)
       @syncEngine.sendAnswer @guid, answer
-    ), ->
+    ), (err)-> WebRTC.log("Answer creating error", err)
 
   handleAnswer: (answer) ->
     @receivedSignals['answer'] = answer

    @setupLocalVideo()
    @initCapturingPluginEvents()
    @checkPluginVersion() if @options.capturingRequired

  setupLocalVideo: ->
    WebRTC.getUserMedia @options.media, ((stream)=> @handleLocalStreem(stream)), ((error)=> WebRTC.log(error))

        break

  _sendData: (signal, data, to = null)->
    WebRTC.log("Signal [#{signal}] sended", data)
    @faye.publish(@roomUrl, {from_guid: @client.guid, to_guid: to, signal_type: signal, data: JSON.stringify(data)})


