Commit 9b89af82 authored by Leo Iannacone's avatar Leo Iannacone

fix call correctly functions with new name

parent 967b2929
...@@ -42,7 +42,7 @@ get_file_path = (data) -> ...@@ -42,7 +42,7 @@ get_file_path = (data) ->
get_files_list = (dir, onlyDirectories, callback) -> get_files_list = (dir, onlyDirectories, callback) ->
fs.readdir dir, (err, files) -> fs.readdir dir, (err, files) ->
if err if err
__errors_handler "__get_files_list", err errors_handler "get_files_list", err
return return
result = [] result = []
for f in files for f in files
...@@ -54,7 +54,7 @@ get_files_list = (dir, onlyDirectories, callback) -> ...@@ -54,7 +54,7 @@ get_files_list = (dir, onlyDirectories, callback) ->
else else
result.push(f) if stat.isFile() result.push(f) if stat.isFile()
catch fs_error catch fs_error
__errors_handler("__get_files_list:forEach", fs_error) errors_handler("get_files_list:forEach", fs_error)
continue continue
callback(result) callback(result)
...@@ -66,7 +66,7 @@ watch_path_onsocket = (event_name, socket, data, watch_path, updater) -> ...@@ -66,7 +66,7 @@ watch_path_onsocket = (event_name, socket, data, watch_path, updater) ->
watcher.close() if watcher watcher.close() if watcher
fs.stat watch_path, (err, stats) -> fs.stat watch_path, (err, stats) ->
if err if err
__errors_handler("__watch_path_onsocket:fs.stat", errors_handler("watch_path_onsocket:fs.stat",
err, socket) err, socket)
return return
...@@ -90,7 +90,7 @@ watch_path_onsocket = (event_name, socket, data, watch_path, updater) -> ...@@ -90,7 +90,7 @@ watch_path_onsocket = (event_name, socket, data, watch_path, updater) ->
socket.watchers = socket_watchers socket.watchers = socket_watchers
catch err catch err
errors_handler("__watch_path_onsocket <- " + errors_handler("watch_path_onsocket <- " +
arguments_.callee.caller.name, arguments_.callee.caller.name,
err, socket) err, socket)
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment