lib/nanoc/cli/error_handler.rb in nanoc-3.5.0b1 vs lib/nanoc/cli/error_handler.rb in nanoc-3.5.0b2
- old
+ new
@@ -56,12 +56,15 @@
Signal.trap(signal) do
puts
exit!(0)
end
end
- Signal.trap('USR1') do
- puts "Caught USR1; dumping a stack trace"
- puts caller.map { |i| " #{i}" }.join("\n")
+ begin
+ Signal.trap('USR1') do
+ puts "Caught USR1; dumping a stack trace"
+ puts caller.map { |i| " #{i}" }.join("\n")
+ end
+ rescue ArgumentError
end
# Run
yield
rescue Nanoc::Errors::GenericTrivial => e