Improved exception handling in gen-config.

master
Luka Vandervelden 2020-01-04 13:29:04 +01:00
parent 7258ac4552
commit 4568f3204d
1 changed files with 5 additions and 0 deletions

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