Method: OpenC3.write_unexpected_file
- Defined in:
- lib/openc3/top_level.rb
.write_unexpected_file(text, filename = 'unexpected', log_dir = nil) ⇒ String|nil
Writes a log file with information about unexpected output
342 343 344 345 346 347 348 349 350 |
# File 'lib/openc3/top_level.rb', line 342 def self.write_unexpected_file(text, filename = 'unexpected', log_dir = nil) log_file = create_log_file(filename, log_dir) do |file| file.puts "Unexpected Output:\n\n" file.puts text ensure file.close end return log_file end |