Method: Backup::Pipeline#error_messages

Defined in:
lib/backup/pipeline.rb

#error_messagesObject

Returns a multi-line String, reporting all STDERR messages received from the commands in the pipeline (if any), along with the SystemCallError (Errno) message for each command which had a non-zero exit status.



80
81
82
83
84
# File 'lib/backup/pipeline.rb', line 80

def error_messages
  @error_messages ||= (stderr_messages || '') +
      "The following system errors were returned:\n" +
      @errors.map {|err| "#{ err.class }: #{ err.message }" }.join("\n")
end