Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
ededc5f9
Commit
ededc5f9
authored
Sep 23, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better error messages from du
parent
415bc507
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
debomatic-webui/lib/stats.coffee
debomatic-webui/lib/stats.coffee
+3
-3
No files found.
debomatic-webui/lib/stats.coffee
View file @
ededc5f9
...
@@ -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
return
if
stderr
?
if
stderr
?
utils
.
errors_handler
"disk usage error:"
,
stderr
error
=
'
\n\t
'
+
stderr
.
replace
(
/\n/g
,
'
\n\t
'
)
utils
.
errors_handler
"disk usage error:"
,
error
return
result
=
{}
result
=
{}
others
=
0
others
=
0
for
line
in
stdout
.
split
(
'
\n
'
)
for
line
in
stdout
.
split
(
'
\n
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment