Improved exception handling in gen-config.
This commit is contained in:
parent
7258ac4552
commit
4568f3204d
@ -197,5 +197,10 @@ rescue e : GenConfig::Exception
|
|||||||
rescue e : Crinja::TypeError
|
rescue e : Crinja::TypeError
|
||||||
STDERR.puts "Error reading template: #{e.message}"
|
STDERR.puts "Error reading template: #{e.message}"
|
||||||
exit 1
|
exit 1
|
||||||
|
rescue e
|
||||||
|
STDERR.puts "unhandled exception: #{e.message}"
|
||||||
|
e.backtrace.map do |line|
|
||||||
|
STDERR << " - " << line << '\n'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user