Sha256: 1c22676f27a107565f3ef989ec4ed2fe32f26bc8b83691321c27273658ec5b0d
Contents?: true
Size: 355 Bytes
Versions: 2
Compression:
Stored size: 355 Bytes
Contents
module Handle # Parses raw messages from hdl-genericbatch and returns a useful message if # the line is an error message. module ErrorParser def self.failure_message(line) (status, raw_message) = line.scan(/^=+>(.+)\[[0-9]+\]: (.+)/).flatten return unless status == 'FAILURE' raw_message.split(/:\s*/).last end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
handle-system-0.1.1 | lib/handle/error_parser.rb |
handle-system-0.1.0 | lib/handle/error_parser.rb |