Method: HazardousError#to_s

Defined in:
lib/openc3/top_level.rb

#to_sObject



44
45
46
47
48
49
# File 'lib/openc3/top_level.rb', line 44

def to_s
  string = "#{target_name} #{cmd_name} with #{cmd_params} is Hazardous "
  string << "due to '#{hazardous_description}'" if hazardous_description
  # Pass along the original formatted command so it can be resent
  string << ".\n#{formatted}"
end