lib/nanoc/cli/error_handler.rb in nanoc-4.8.5 vs lib/nanoc/cli/error_handler.rb in nanoc-4.8.6

- old
+ new

@@ -153,15 +153,15 @@ Nanoc::CLI.debug? end # @return [Nanoc::Int::Site] The site that is currently being processed def site - @command && @command.site + @command&.site end # @return [Nanoc::Int::Compiler] The compiler for the current site def compiler - site && site.compiler + site&.compiler end # @return [Hash<String, Array>] A hash containing the gem names as keys and gem versions as value def gems_and_versions gems = {}