Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error output for compliance plugin #544

Closed
chris-rock opened this issue Mar 16, 2016 · 1 comment
Closed

Improve error output for compliance plugin #544

chris-rock opened this issue Mar 16, 2016 · 1 comment
Labels
Type: Enhancement Improves an existing feature

Comments

@chris-rock
Copy link
Contributor

As highlighted by @aaronlippold we should not have such a strange output. Who wrote that in the first place :-)

inspec compliance login https://cocreate-aaronl --insecure --password=XXX. --user=alippold
/opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/json-1.8.3/lib/json/commo (JSON::ParserError) 757: unexpected token at '<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.8.0</center>
</body>
</html>
'
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/json-1.8.3/lib/json/common.rb:155:in parse' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/lib/bundles/inspec-compliance/api.rb:20:inlogin'
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/lib/bundles/inspec-compliance/cli.rb:19:in login' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:inrun'
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:indispatch'
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in invoke' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:235:inblock in subcommand'
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in run' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:ininvoke_command'
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in dispatch' from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:instart'
from /opt/chef-compliance/embedded/lib/ruby/gems/2.2.0/gems/inspec-0.15.0/bin/inspec:165:in <top (required)>' from /opt/chef-compliance/embedded/bin/inspec:23:inload'
from /opt/chef-compliance/embedded/bin/inspec:23:in `<main>'
[alippold@cocreate-aaronl ssg-rhel6-c2s]$
@chris-rock chris-rock added the Type: Enhancement Improves an existing feature label Mar 16, 2016
@chris-rock
Copy link
Contributor Author

fixed with #696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant