Added traceback for easier error handling.

This commit is contained in:
Martin Edenhofer 2016-11-19 16:41:41 +01:00
parent c12372dd47
commit 0afac1d28c

View file

@ -394,6 +394,7 @@ returns
p 'ERROR: ' + e.inspect # rubocop:disable Rails/Output
Rails.logger.error message
Rails.logger.error 'ERROR: ' + e.inspect
Rails.logger.error 'ERROR: ' + e.backtrace.inspect
File.open(filename, 'wb') { |file|
file.write msg
}