Improved exception handling in gen-config.

This commit is contained in:
Luka Vandervelden 2020-01-04 13:29:04 +01:00
parent 7258ac4552
commit 4568f3204d

View File

@ -197,5 +197,10 @@ rescue e : GenConfig::Exception
rescue e : Crinja::TypeError
STDERR.puts "Error reading template: #{e.message}"
exit 1
rescue e
STDERR.puts "unhandled exception: #{e.message}"
e.backtrace.map do |line|
STDERR << " - " << line << '\n'
end
end