summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@chef.io>2017-07-19 20:46:34 -0400
committerBryan McLellan <btm@chef.io>2017-07-19 20:47:42 -0400
commitce04b724f06388c6ed64ec2ea8409c1fb8229d32 (patch)
treef08e6b8edd0ae619c9ebd06c0e0f6366013e41cd
parent1b6c30ee7f83610d06fdb40aac0e7bbe22907442 (diff)
downloadmixlib-shellout-ce04b724f06388c6ed64ec2ea8409c1fb8229d32.tar.gz
Make Mixlib::ShellOut::EmptyWindowsCommand inherit from ShellCommandFailed
Chef rescues Mixlib::ShellOut::ShellCommandFailed, SystemCallError in a few places. Recent refactors caused EmptyWindowsCommand to be correctly raised where we still unintentionally raised SystemCallError due to a bad FFI call. This gets us closer to not needing to cover these edge cases in rescue clauses everywhere. Signed-off-by: Bryan McLellan <btm@chef.io>
-rw-r--r--lib/mixlib/shellout/exceptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/shellout/exceptions.rb b/lib/mixlib/shellout/exceptions.rb
index e1fae8d..b45a502 100644
--- a/lib/mixlib/shellout/exceptions.rb
+++ b/lib/mixlib/shellout/exceptions.rb
@@ -4,6 +4,6 @@ module Mixlib
class ShellCommandFailed < Error; end
class CommandTimeout < Error; end
class InvalidCommandOption < Error; end
- class EmptyWindowsCommand < Error; end
+ class EmptyWindowsCommand < ShellCommandFailed; end
end
end