Exception: Metanorma::Cli::Errors::FatalCompilationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/metanorma/cli/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fatals) ⇒ FatalCompilationError

Returns a new instance of FatalCompilationError.



12
13
14
15
# File 'lib/metanorma/cli/errors.rb', line 12

def initialize(fatals)
  super()
  @fatals = fatals
end

Instance Attribute Details

#fatalsObject (readonly)

Returns the value of attribute fatals.



10
11
12
# File 'lib/metanorma/cli/errors.rb', line 10

def fatals
  @fatals
end

Instance Method Details

#messageObject



17
18
19
20
21
22
23
24
# File 'lib/metanorma/cli/errors.rb', line 17

def message
  <<~MSG
    Fatal compilation error(s):
    #{fatals.map { |f| "- #{f}" }.join("\n")}

    Look at error.log for more details
  MSG
end