lib/nanoc/cli/error_handler.rb in nanoc-4.2.1 vs lib/nanoc/cli/error_handler.rb in nanoc-4.2.2

- old
+ new

@@ -40,11 +40,11 @@ # called directly; use {Nanoc::CLI::ErrorHandler.handle_while} instead. # # @return [void] def handle_while(&_block) # Set exit handler - %w( INT TERM ).each do |signal| + %w(INT TERM).each do |signal| Signal.trap(signal) do puts exit!(0) end end @@ -231,14 +231,12 @@ "Install the '#{gem_name}' gem using `gem install #{gem_name}`." end end when RuntimeError if error.message =~ /^can't modify frozen/ - 'You attempted to modify immutable data. Some data, such as ' \ - 'item/layout attributes and raw item/layout content, can not ' \ - 'be modified once compilation has started. (This was ' \ - 'unintentionally possible in 3.1.x and before, but has been ' \ - 'disabled in 3.2.x in order to allow compiler optimisations.)' + 'You attempted to modify immutable data. Some data cannot ' \ + 'be modified once compilation has started. Such data includes ' \ + 'content and attributes of items and layouts, and filter arguments.' end end end def using_bundler?