diff --git a/lib/sprinkle/actors/vlad.rb b/lib/sprinkle/actors/vlad.rb index dfc4caa..f0d7edf 100644 --- a/lib/sprinkle/actors/vlad.rb +++ b/lib/sprinkle/actors/vlad.rb @@ -52,7 +52,7 @@ def process(name, commands, roles, suppress_and_return_failures = false) #:nodoc begin t.invoke return true - rescue ::Vlad::CommandFailedError => e + rescue ::Rake::CommandFailedError => e return false if suppress_and_return_failures # Reraise error if we're not suppressing it @@ -65,7 +65,7 @@ def transfer(name, source, destination, roles, recursive = true, suppress_and_re begin rsync source, destination return true - rescue ::Vlad::CommandFailedError => e + rescue ::Rake::CommandFailedError => e return false if suppress_and_return_failures # Reraise error if we're not suppressing it