                 file.reread = false
                 @fileChange name
             res
-        .catch (err) ->
-            console.log err
-            console.log err.stack
+        .catch (err) =>
+            @log "error", err
+            @log "error", err.stack
 
     # Remove a file from the pipeline
     fileUnlink: (name) ->

                name:name
                added:res.add
            res
        .catch (err) ->
            console.log err
            console.log err.stack

    # Message file change
    fileChange: (name, content) ->

        .then (res) =>
            delete @state.localFiles[name]
            res
        .catch (err) =>
            @log "error", err
            @log "error", err.stack



