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

Removing thread ability to print exception information to stdout #95

Merged
merged 1 commit into from
Apr 26, 2018

Conversation

tyler-ball
Copy link
Contributor

[chef-workstation]$ be chef converge vagrant@192.168.33.51 foo bar
[✔] [192.168.33.51] Connected.
[✔] [192.168.33.51] Client already present on system.
[✖] [192.168.33.51] Failed to converge target.
#<Thread:0x00007f808baf17f8@/Users/tball/.rvm/gems/ruby-2.5.1@chef-workstation/gems/tty-spinner-0.8.0/lib/tty/spinner.rb:290 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
	13: from /Users/tball/.rvm/gems/ruby-2.5.1@chef-workstation/gems/tty-spinner-0.8.0/lib/tty/spinner.rb:290:in `block in run'
	12: from /Users/tball/.rvm/gems/ruby-2.5.1@chef-workstation/gems/tty-spinner-0.8.0/lib/tty/spinner.rb:208:in `execute_job'
	11: from /Users/tball/.rvm/gems/ruby-2.5.1@chef-workstation/gems/tty-spinner-0.8.0/lib/tty/spinner.rb:208:in `instance_eval'
	10: from /Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/ui/terminal.rb:35:in `block in spinner'
	 9: from /Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/command/target/converge.rb:89:in `block in run'
	 8: from /Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/command/target/converge.rb:227:in `converge'
	 7: from /Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/action/base.rb:74:in `run'
	 6: from /Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/telemetry.rb:49:in `timed_capture'
	 5: from /Users/tball/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/benchmark.rb:293:in `measure'
	 4: from /Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/telemetry.rb:49:in `block in timed_capture'
	 3: from /Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/action/base.rb:75:in `block in run'
	 2: from /Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/action/converge_target.rb:23:in `perform_action'
	 1: from /Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/action/converge_target.rb:99:in `handle_ccr_error'
/Users/tball/github/chef-workstation/components/chef-workstation/lib/chef-workstation/errors/ccr_failure_mapper.rb:20:in `raise_mapped_exception!': ChefWorkstation::Errors::CCRFailureMapper::RemoteChefClientRunFailed (ChefWorkstation::Errors::CCRFailureMapper::RemoteChefClientRunFailed)

CHEFCCR005

'foo' is not a valid Chef resource.

Please consult the documentation for a list of valid resources:

  https://docs.chef.io/resource_reference.html

If you are not able to resolve this issue, please contact Chef support
at beta@chef.io

@tyler-ball tyler-ball requested a review from a team April 26, 2018 20:41
Copy link
Contributor

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're done, thread

@tyler-ball tyler-ball merged commit 76ba7c7 into master Apr 26, 2018
@tyler-ball tyler-ball deleted the thread_exception branch April 26, 2018 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants