lib/backup/pipeline.rb in backup-3.6.0 vs lib/backup/pipeline.rb in backup-3.7.0

- old
+ new

@@ -1,9 +1,11 @@ # encoding: utf-8 module Backup class Pipeline + class Error < Backup::Error; end + include Backup::Utilities::Helpers attr_reader :stderr, :errors def initialize @@ -61,11 +63,11 @@ end end @stderr = stderr.read.strip end Logger.warn(stderr_messages) if success? && stderr_messages - rescue Exception => e - raise Errors::Pipeline::ExecutionError.wrap(e) + rescue Exception => err + raise Error.wrap(err, 'Pipeline failed to execute') end def success? @errors.empty? end