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



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
  "    Fatal compilation error(s):\n    \#{fatals.map { |f| \"- \#{f}\" }.join(\"\\n\")}\n\n    Look at error.log for more details\n  MSG\nend\n"