Commit ededc5f9 authored by Leo Iannacone's avatar Leo Iannacone

better error messages from du

parent 415bc507
...@@ -34,10 +34,10 @@ get_all_packages = (cb) -> ...@@ -34,10 +34,10 @@ get_all_packages = (cb) ->
get_disk_usage = (cb) -> get_disk_usage = (cb) ->
exec "du -d 2 #{config.debomatic.path}", (error, stdout, stderr) -> exec "du -d 2 #{config.debomatic.path}", (error, stdout, stderr) ->
if error? if error?
utils.errors_handler "stats:get_disk_usage", err if stderr?
error = '\n\t' + stderr.replace(/\n/g, '\n\t')
utils.errors_handler "disk usage error:", error
return return
if stderr?
utils.errors_handler "disk usage error:", stderr
result = {} result = {}
others = 0 others = 0
for line in stdout.split('\n') for line in stdout.split('\n')
......
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