class TexLogParser::FatalErrorOccurred

Matches messages of this form:

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on plain.log.

Public Class Methods

new() click to toggle source

Creates a new instance.

Calls superclass method LogParser::RegExpPattern::new
# File lib/tex_log_parser/patterns/fatal_error_occurred.rb, line 12
def initialize
  super(/^!\s+==>/,
        { pattern: ->(_) { /Transcript written/ }, until: :match, inclusive: true }
  )
end

Public Instance Methods

read(lines) click to toggle source

(see LogParser::RegExpPattern#read)

Calls superclass method LogParser::RegExpPattern#read
# File lib/tex_log_parser/patterns/fatal_error_occurred.rb, line 19
def read(lines)
  # @type [Message] msg
  msg, consumed = super(lines)

  msg.level = :error
  msg.preformatted = false

  [msg, consumed]
end