Method: ATP::Validator#error

Defined in:
lib/atp/validator.rb

#error(message) ⇒ Object



42
43
44
45
46
47
48
49
50
51
# File 'lib/atp/validator.rb', line 42

def error(message)
  # This is a hack to make the specs pass, for some reason RSpec
  # seems to be swallowing the Origen log output after the first
  # test that generates an error
  if Validator.testing
    puts message
  else
    Origen.log.error(message)
  end
end