diff options
author | NimishaS <nimisha.sharad@msystechnologies.com> | 2016-10-03 09:27:36 +0000 |
---|---|---|
committer | NimishaS <nimisha.sharad@msystechnologies.com> | 2016-10-03 09:27:36 +0000 |
commit | af13c7a425e990232d6ff0a1739ff81ed12b55cd (patch) | |
tree | f8ddb75582c84adddbb53e1dd5ff5a6b886b4198 /lib/chef/mixin/powershell_out.rb | |
parent | c8ba46a99e255414576f94afee0f034ccf24d0bf (diff) | |
download | chef-af13c7a425e990232d6ff0a1739ff81ed12b55cd.tar.gz |
Raising Mixlib::ShellOut::ShellCommandFailed exception
Signed-off-by: NimishaS <nimisha.sharad@msystechnologies.com>
Diffstat (limited to 'lib/chef/mixin/powershell_out.rb')
-rw-r--r-- | lib/chef/mixin/powershell_out.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/mixin/powershell_out.rb b/lib/chef/mixin/powershell_out.rb index 67698ed5b1..3e1f588319 100644 --- a/lib/chef/mixin/powershell_out.rb +++ b/lib/chef/mixin/powershell_out.rb @@ -37,9 +37,9 @@ class Chef result = run_command_with_os_architecture(script, options) if result.stderr.include? "A positional parameter cannot be found that accepts argument" - raise "Please use single escape for special characters in powershell_out." + raise Mixlib::ShellOut::ShellCommandFailed, "Please use single escape for special characters in powershell_out. \n #{result.stderr}" elsif result.stderr != "" - raise result.stderr + raise Mixlib::ShellOut::ShellCommandFailed, result.stderr end result end |