Skip to content

Commit

Permalink
gh-20: fix return code and libguestfs-test-tool tip
Browse files Browse the repository at this point in the history
  • Loading branch information
jfontan committed Nov 30, 2016
1 parent 8ea9d24 commit f3f8980
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/canga
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class Canga < Thor

rc = check.check

exit(-1) if !rc
exit(-1) if rc
end
end

Expand Down
9 changes: 8 additions & 1 deletion lib/cangallo/check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def check
if problem
text = <<-EOT
There is at least one problem in your system. You can go this page to
get more information on how to fix them:
get more information on how to fix it:
https://canga.io/install/
Expand All @@ -41,6 +41,13 @@ def check
STDERR.puts text
end

STDERR.puts <<-EOT
It's also a good idea to execute libguestfs test tool:
$ libguestfs-test-tool
EOT

problem
end

Expand Down

0 comments on commit f3f8980

Please sign in to comment.